Parse MSWord Files...

C

Christiano

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.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,
christiano
 
F

Family Tree Mike

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.
 
C

Christiano

the Microsoft.Office.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.Office.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
 
L

Lloyd Sheen

Christiano said:
the Microsoft.Office.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.Office.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

Microsoft.Office.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
 
C

Christiano

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
 
L

Lloyd Sheen

Christiano said:
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

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
 
H

Herfried K. Wagner [MVP]

Christiano said:
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.Office.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.microsoft.com/?scid=kb;EN-US;257757>
 
C

Christiano

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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top