469,609 Members | 1,455 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,609 developers. It's quick & easy.

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.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
Jul 3 '08 #1
8 1074
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.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
Jul 3 '08 #2
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
"Family Tree Mike" <Fa************@discussions.microsoft.comescreve u na
mensagem news:8C**********************************@microsof t.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.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

Jul 3 '08 #3

"Christiano" <cd****@digiexpress.com.brwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
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
"Family Tree Mike" <Fa************@discussions.microsoft.comescreve u na
mensagem news:8C**********************************@microsof t.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.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

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

Jul 3 '08 #4
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.cescreveu na mensagem
news:O4**************@TK2MSFTNGP06.phx.gbl...
>
"Christiano" <cd****@digiexpress.com.brwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>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
"Family Tree Mike" <Fa************@discussions.microsoft.comescreve u na
mensagem news:8C**********************************@microsof t.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.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


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

Jul 3 '08 #5

"Christiano" <cd****@digiexpress.com.brwrote in message
news:%2***************@TK2MSFTNGP04.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.cescreveu na mensagem
news:O4**************@TK2MSFTNGP06.phx.gbl...
>>
"Christiano" <cd****@digiexpress.com.brwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>>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
"Family Tree Mike" <Fa************@discussions.microsoft.comescreve u
na mensagem news:8C**********************************@microsof t.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.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
>
>
>


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

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

Jul 3 '08 #6
On 2008-07-03, Christiano <cd****@digiexpress.com.brwrote:
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.cescreveu na mensagem
news:O4**************@TK2MSFTNGP06.phx.gbl...
>>
"Christiano" <cd****@digiexpress.com.brwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>>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
"Family Tree Mike" <Fa************@discussions.microsoft.comescreve u na
mensagem news:8C**********************************@microsof t.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.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
>
>
>


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

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.Packaging namespace as of .NET 3.0. Just a
thought.

--
Tom Shelton
Jul 3 '08 #7
"Christiano" <cd****@digiexpress.com.brschrieb:
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>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Jul 3 '08 #8
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" <to*********@comcastXXXXXXX.netescreveu na mensagem
news:Ov******************************@comcast.com. ..
On 2008-07-03, Christiano <cd****@digiexpress.com.brwrote:
>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.cescreveu na mensagem
news:O4**************@TK2MSFTNGP06.phx.gbl...
>>>
"Christiano" <cd****@digiexpress.com.brwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl.. .
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
"Family Tree Mike" <Fa************@discussions.microsoft.comescreve u
na
mensagem news:8C**********************************@microsof t.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.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
>>
>>
>>

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


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.Packaging namespace as of .NET 3.0. Just a
thought.

--
Tom Shelton

Jul 4 '08 #9

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Tom Gao | last post: by
1 post views Thread by Eilsa | last post: by
1 post views Thread by Jason Huang | last post: by
1 post views Thread by Jason Huang | last post: by
5 posts views Thread by Y.A. | last post: by
6 posts views Thread by Peter | last post: by
1 post views Thread by Matt Curreri | last post: by
reply views Thread by Solution2021 | last post: by
reply views Thread by devrayhaan | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.