Parse MSWord Files...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Christiano

    Parse MSWord Files...

    Hey there...


    i've developed an asp.net app where you upload a .DOC file and the
    application converts it into .html.

    In my development environment everything worked fine, but when i
    uploaded, i discovered that my hosting doens't allow me to use
    Microsoft.Offic e.Interop.Word Namespace..

    - is there any file that I can upload to use it?
    - if i create an .dll file with the used code for converting, and
    upload, will it work?
    - is there another way to parse word files into html?

    tks in advance,
    christiano


  • =?Utf-8?B?RmFtaWx5IFRyZWUgTWlrZQ==?=

    #2
    RE: Parse MSWord Files...

    One of the file types to save from Word is HTML. You can do this without
    going to the web.

    If you want to use MS Word objects on your server though, you need to have
    Word installed there. I don't recall the particulars at the moment, but I
    recall others pointing out using Office in this way (on a server) is not
    recommended.

    "Christiano " wrote:
    Hey there...
    >
    >
    i've developed an asp.net app where you upload a .DOC file and the
    application converts it into .html.
    >
    In my development environment everything worked fine, but when i
    uploaded, i discovered that my hosting doens't allow me to use
    Microsoft.Offic e.Interop.Word Namespace..
    >
    - is there any file that I can upload to use it?
    - if i create an .dll file with the used code for converting, and
    upload, will it work?
    - is there another way to parse word files into html?
    >
    tks in advance,
    christiano
    >
    >
    >

    Comment

    • Christiano

      #3
      Re: Parse MSWord Files...

      the Microsoft.Offic e.Interop.Word Namespace does this "save as html"...
      you need only to upload and the webpage will be avaiable...

      i've tried uploading the Microsoft.Offic e.Interop.Word. dll into the \bin
      folder... but didn't work out...

      i think i would need to register it in gacutil, or something like it...


      what i need is to upload a .doc file, and the component
      "Family Tree Mike" <FamilyTreeMike @discussions.mi crosoft.comescr eveu na
      mensagem news:8C820FCD-5409-4DDC-B6E3-3D73B247E8CC@mi crosoft.com...
      One of the file types to save from Word is HTML. You can do this without
      going to the web.
      >
      If you want to use MS Word objects on your server though, you need to have
      Word installed there. I don't recall the particulars at the moment, but I
      recall others pointing out using Office in this way (on a server) is not
      recommended.
      >
      "Christiano " wrote:
      >
      >Hey there...
      >>
      >>
      > i've developed an asp.net app where you upload a .DOC file and the
      >application converts it into .html.
      >>
      > In my development environment everything worked fine, but when i
      >uploaded, i discovered that my hosting doens't allow me to use
      >Microsoft.Offi ce.Interop.Word Namespace..
      >>
      > - is there any file that I can upload to use it?
      > - if i create an .dll file with the used code for converting, and
      >upload, will it work?
      > - is there another way to parse word files into html?
      >>
      >tks in advance,
      >christiano
      >>
      >>
      >>

      Comment

      • Lloyd Sheen

        #4
        Re: Parse MSWord Files...


        "Christiano " <cdonke@digiexp ress.com.brwrot e in message
        news:%23pI$YkT3 IHA.5088@TK2MSF TNGP03.phx.gbl. ..
        the Microsoft.Offic e.Interop.Word Namespace does this "save as html"...
        you need only to upload and the webpage will be avaiable...
        >
        i've tried uploading the Microsoft.Offic e.Interop.Word. dll into the \bin
        folder... but didn't work out...
        >
        i think i would need to register it in gacutil, or something like it...
        >
        >
        what i need is to upload a .doc file, and the component
        "Family Tree Mike" <FamilyTreeMike @discussions.mi crosoft.comescr eveu na
        mensagem news:8C820FCD-5409-4DDC-B6E3-3D73B247E8CC@mi crosoft.com...
        >One of the file types to save from Word is HTML. You can do this without
        >going to the web.
        >>
        >If you want to use MS Word objects on your server though, you need to
        >have
        >Word installed there. I don't recall the particulars at the moment, but
        >I
        >recall others pointing out using Office in this way (on a server) is not
        >recommended.
        >>
        >"Christiano " wrote:
        >>
        >>Hey there...
        >>>
        >>>
        >> i've developed an asp.net app where you upload a .DOC file and the
        >>application converts it into .html.
        >>>
        >> In my development environment everything worked fine, but when i
        >>uploaded, i discovered that my hosting doens't allow me to use
        >>Microsoft.Off ice.Interop.Wor d Namespace..
        >>>
        >> - is there any file that I can upload to use it?
        >> - if i create an .dll file with the used code for converting, and
        >>upload, will it work?
        >> - is there another way to parse word files into html?
        >>>
        >>tks in advance,
        >>christiano
        >>>
        >>>
        >>>
        >
        >
        Microsoft.Offic e.Interop.Word. dll is just a wrapper that VS will create to
        allow the usage of a com component. If you don't have MS Office (at least
        word) installed that dll would simply wrap nothing.

        LS

        Comment

        • Christiano

          #5
          Re: Parse MSWord Files...

          I see...

          if i write a dll that does all the html encoding and upload it...
          do you think it will work?

          i get from MS a manual about the word binaries from 97 to 2007...

          it's a 210 pages pdf that is anything but simple nor self-explanatory...
          i think i'll have to read it... :S



          "Lloyd Sheen" <a@b.cescreve u na mensagem
          news:O4YxKsT3IH A.2348@TK2MSFTN GP06.phx.gbl...
          >
          "Christiano " <cdonke@digiexp ress.com.brwrot e in message
          news:%23pI$YkT3 IHA.5088@TK2MSF TNGP03.phx.gbl. ..
          >the Microsoft.Offic e.Interop.Word Namespace does this "save as html"...
          >you need only to upload and the webpage will be avaiable...
          >>
          >i've tried uploading the Microsoft.Offic e.Interop.Word. dll into the \bin
          >folder... but didn't work out...
          >>
          >i think i would need to register it in gacutil, or something like it...
          >>
          >>
          >what i need is to upload a .doc file, and the component
          >"Family Tree Mike" <FamilyTreeMike @discussions.mi crosoft.comescr eveu na
          >mensagem news:8C820FCD-5409-4DDC-B6E3-3D73B247E8CC@mi crosoft.com...
          >>One of the file types to save from Word is HTML. You can do this
          >>without
          >>going to the web.
          >>>
          >>If you want to use MS Word objects on your server though, you need to
          >>have
          >>Word installed there. I don't recall the particulars at the moment, but
          >>I
          >>recall others pointing out using Office in this way (on a server) is not
          >>recommended .
          >>>
          >>"Christiano " wrote:
          >>>
          >>>Hey there...
          >>>>
          >>>>
          >>> i've developed an asp.net app where you upload a .DOC file and the
          >>>applicatio n converts it into .html.
          >>>>
          >>> In my development environment everything worked fine, but when i
          >>>uploaded, i discovered that my hosting doens't allow me to use
          >>>Microsoft.Of fice.Interop.Wo rd Namespace..
          >>>>
          >>> - is there any file that I can upload to use it?
          >>> - if i create an .dll file with the used code for converting, and
          >>>upload, will it work?
          >>> - is there another way to parse word files into html?
          >>>>
          >>>tks in advance,
          >>>christiano
          >>>>
          >>>>
          >>>>
          >>
          >>
          >
          Microsoft.Offic e.Interop.Word. dll is just a wrapper that VS will create
          to allow the usage of a com component. If you don't have MS Office (at
          least word) installed that dll would simply wrap nothing.
          >
          LS

          Comment

          • Lloyd Sheen

            #6
            Re: Parse MSWord Files...


            "Christiano " <cdonke@digiexp ress.com.brwrot e in message
            news:%230UjGvT3 IHA.784@TK2MSFT NGP04.phx.gbl.. .
            >I see...
            >
            if i write a dll that does all the html encoding and upload it...
            do you think it will work?
            >
            i get from MS a manual about the word binaries from 97 to 2007...
            >
            it's a 210 pages pdf that is anything but simple nor self-explanatory...
            i think i'll have to read it... :S
            >
            >
            >
            "Lloyd Sheen" <a@b.cescreve u na mensagem
            news:O4YxKsT3IH A.2348@TK2MSFTN GP06.phx.gbl...
            >>
            >"Christiano " <cdonke@digiexp ress.com.brwrot e in message
            >news:%23pI$YkT 3IHA.5088@TK2MS FTNGP03.phx.gbl ...
            >>the Microsoft.Offic e.Interop.Word Namespace does this "save as html"...
            >>you need only to upload and the webpage will be avaiable...
            >>>
            >>i've tried uploading the Microsoft.Offic e.Interop.Word. dll into the \bin
            >>folder... but didn't work out...
            >>>
            >>i think i would need to register it in gacutil, or something like it...
            >>>
            >>>
            >>what i need is to upload a .doc file, and the component
            >>"Family Tree Mike" <FamilyTreeMike @discussions.mi crosoft.comescr eveu
            >>na mensagem news:8C820FCD-5409-4DDC-B6E3-3D73B247E8CC@mi crosoft.com...
            >>>One of the file types to save from Word is HTML. You can do this
            >>>without
            >>>going to the web.
            >>>>
            >>>If you want to use MS Word objects on your server though, you need to
            >>>have
            >>>Word installed there. I don't recall the particulars at the moment,
            >>>but I
            >>>recall others pointing out using Office in this way (on a server) is
            >>>not
            >>>recommende d.
            >>>>
            >>>"Christian o" wrote:
            >>>>
            >>>>Hey there...
            >>>>>
            >>>>>
            >>>> i've developed an asp.net app where you upload a .DOC file and the
            >>>>applicati on converts it into .html.
            >>>>>
            >>>> In my development environment everything worked fine, but when i
            >>>>uploaded, i discovered that my hosting doens't allow me to use
            >>>>Microsoft.O ffice.Interop.W ord Namespace..
            >>>>>
            >>>> - is there any file that I can upload to use it?
            >>>> - if i create an .dll file with the used code for converting, and
            >>>>upload, will it work?
            >>>> - is there another way to parse word files into html?
            >>>>>
            >>>>tks in advance,
            >>>>christian o
            >>>>>
            >>>>>
            >>>>>
            >>>
            >>>
            >>
            >Microsoft.Offi ce.Interop.Word .dll is just a wrapper that VS will create
            >to allow the usage of a com component. If you don't have MS Office (at
            >least word) installed that dll would simply wrap nothing.
            >>
            >LS
            >
            >
            If you write your own DLL it would work of course but I have to think that
            this is not a trivial task. One thing to think of is that MS is (with other
            companies) attempting to get a standard for documents (in XML format) so all
            this work might be for nothing.

            LS

            Comment

            • Tom Shelton

              #7
              Re: Parse MSWord Files...

              On 2008-07-03, Christiano <cdonke@digiexp ress.com.brwrot e:
              I see...
              >
              if i write a dll that does all the html encoding and upload it...
              do you think it will work?
              >
              i get from MS a manual about the word binaries from 97 to 2007...
              >
              it's a 210 pages pdf that is anything but simple nor self-explanatory...
              i think i'll have to read it... :S
              >
              >
              >
              "Lloyd Sheen" <a@b.cescreve u na mensagem
              news:O4YxKsT3IH A.2348@TK2MSFTN GP06.phx.gbl...
              >>
              >"Christiano " <cdonke@digiexp ress.com.brwrot e in message
              >news:%23pI$YkT 3IHA.5088@TK2MS FTNGP03.phx.gbl ...
              >>the Microsoft.Offic e.Interop.Word Namespace does this "save as html"...
              >>you need only to upload and the webpage will be avaiable...
              >>>
              >>i've tried uploading the Microsoft.Offic e.Interop.Word. dll into the \bin
              >>folder... but didn't work out...
              >>>
              >>i think i would need to register it in gacutil, or something like it...
              >>>
              >>>
              >>what i need is to upload a .doc file, and the component
              >>"Family Tree Mike" <FamilyTreeMike @discussions.mi crosoft.comescr eveu na
              >>mensagem news:8C820FCD-5409-4DDC-B6E3-3D73B247E8CC@mi crosoft.com...
              >>>One of the file types to save from Word is HTML. You can do this
              >>>without
              >>>going to the web.
              >>>>
              >>>If you want to use MS Word objects on your server though, you need to
              >>>have
              >>>Word installed there. I don't recall the particulars at the moment, but
              >>>I
              >>>recall others pointing out using Office in this way (on a server) is not
              >>>recommende d.
              >>>>
              >>>"Christian o" wrote:
              >>>>
              >>>>Hey there...
              >>>>>
              >>>>>
              >>>> i've developed an asp.net app where you upload a .DOC file and the
              >>>>applicati on converts it into .html.
              >>>>>
              >>>> In my development environment everything worked fine, but when i
              >>>>uploaded, i discovered that my hosting doens't allow me to use
              >>>>Microsoft.O ffice.Interop.W ord Namespace..
              >>>>>
              >>>> - is there any file that I can upload to use it?
              >>>> - if i create an .dll file with the used code for converting, and
              >>>>upload, will it work?
              >>>> - is there another way to parse word files into html?
              >>>>>
              >>>>tks in advance,
              >>>>christian o
              >>>>>
              >>>>>
              >>>>>
              >>>
              >>>
              >>
              >Microsoft.Offi ce.Interop.Word .dll is just a wrapper that VS will create
              >to allow the usage of a com component. If you don't have MS Office (at
              >least word) installed that dll would simply wrap nothing.
              >>
              >LS
              >
              >
              Have you considered using the new docx formats? They are simply zip files
              with xml data. They are farily well documented. And there is support for the
              file format in the System.IO.Packa ging namespace as of .NET 3.0. Just a
              thought.

              --
              Tom Shelton

              Comment

              • Herfried K. Wagner [MVP]

                #8
                Re: Parse MSWord Files...

                "Christiano " <cdonke@digiexp ress.com.brschr ieb:
                i've developed an asp.net app where you upload a .DOC file and the
                application converts it into .html.
                >
                In my development environment everything worked fine, but when i
                uploaded, i discovered that my hosting doens't allow me to use
                Microsoft.Offic e.Interop.Word Namespace..
                Well, it's likely that the Web server does not have Office installed.

                Note that Office should be directly automated on a Web server:

                INFO: Considerations for Server-Side Automation of Office
                <URL:http://support.microso ft.com/?scid=kb;EN-US;257757>

                --
                M S Herfried K. Wagner
                M V P <URL:http://dotnet.mvps.org/>
                V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

                Comment

                • Christiano

                  #9
                  Re: Parse MSWord Files...

                  i'm in Brazil, and here we have too few people using the 2007, yet...

                  anyway...

                  i'm having all this work because the dude that update s the site is as smart
                  as lettuce... actually... a lettuce is a little smarter them him...

                  also... my web hosting service allows me the 2.0 framework...


                  tks,
                  christiano.


                  i had a js rtf wysiwyg editor... but the user is good enough to crash the
                  system copying-pasting irregular word files there...
                  "Tom Shelton" <tom_shelton@co mcastXXXXXXX.ne tescreveu na mensagem
                  news:OvSdnY1tQa eZ2vDVnZ2dnUVZ_ hWdnZ2d@comcast .com...
                  On 2008-07-03, Christiano <cdonke@digiexp ress.com.brwrot e:
                  >I see...
                  >>
                  >if i write a dll that does all the html encoding and upload it...
                  >do you think it will work?
                  >>
                  >i get from MS a manual about the word binaries from 97 to 2007...
                  >>
                  >it's a 210 pages pdf that is anything but simple nor self-explanatory...
                  >i think i'll have to read it... :S
                  >>
                  >>
                  >>
                  >"Lloyd Sheen" <a@b.cescreve u na mensagem
                  >news:O4YxKsT3I HA.2348@TK2MSFT NGP06.phx.gbl.. .
                  >>>
                  >>"Christiano " <cdonke@digiexp ress.com.brwrot e in message
                  >>news:%23pI$Yk T3IHA.5088@TK2M SFTNGP03.phx.gb l...
                  >>>the Microsoft.Offic e.Interop.Word Namespace does this "save as html"...
                  >>>you need only to upload and the webpage will be avaiable...
                  >>>>
                  >>>i've tried uploading the Microsoft.Offic e.Interop.Word. dll into the
                  >>>\bin
                  >>>folder... but didn't work out...
                  >>>>
                  >>>i think i would need to register it in gacutil, or something like it...
                  >>>>
                  >>>>
                  >>>what i need is to upload a .doc file, and the component
                  >>>"Family Tree Mike" <FamilyTreeMike @discussions.mi crosoft.comescr eveu
                  >>>na
                  >>>mensagem news:8C820FCD-5409-4DDC-B6E3-3D73B247E8CC@mi crosoft.com...
                  >>>>One of the file types to save from Word is HTML. You can do this
                  >>>>without
                  >>>>going to the web.
                  >>>>>
                  >>>>If you want to use MS Word objects on your server though, you need to
                  >>>>have
                  >>>>Word installed there. I don't recall the particulars at the moment,
                  >>>>but
                  >>>>I
                  >>>>recall others pointing out using Office in this way (on a server) is
                  >>>>not
                  >>>>recommended .
                  >>>>>
                  >>>>"Christiano " wrote:
                  >>>>>
                  >>>>>Hey there...
                  >>>>>>
                  >>>>>>
                  >>>>> i've developed an asp.net app where you upload a .DOC file and
                  >>>>>the
                  >>>>>applicatio n converts it into .html.
                  >>>>>>
                  >>>>> In my development environment everything worked fine, but when i
                  >>>>>uploaded , i discovered that my hosting doens't allow me to use
                  >>>>>Microsoft. Office.Interop. Word Namespace..
                  >>>>>>
                  >>>>> - is there any file that I can upload to use it?
                  >>>>> - if i create an .dll file with the used code for converting, and
                  >>>>>upload, will it work?
                  >>>>> - is there another way to parse word files into html?
                  >>>>>>
                  >>>>>tks in advance,
                  >>>>>christia no
                  >>>>>>
                  >>>>>>
                  >>>>>>
                  >>>>
                  >>>>
                  >>>
                  >>Microsoft.Off ice.Interop.Wor d.dll is just a wrapper that VS will create
                  >>to allow the usage of a com component. If you don't have MS Office (at
                  >>least word) installed that dll would simply wrap nothing.
                  >>>
                  >>LS
                  >>
                  >>
                  >
                  Have you considered using the new docx formats? They are simply zip files
                  with xml data. They are farily well documented. And there is support for
                  the
                  file format in the System.IO.Packa ging namespace as of .NET 3.0. Just a
                  thought.
                  >
                  --
                  Tom Shelton

                  Comment

                  Working...