473,398 Members | 2,212 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

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 1164
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Tom Gao | last post by:
hi guys I'm trying to export an aspx page to msword. ############# I know you can do Response.Clear(); Response.ContentType="application/msword";
1
by: Eilsa | last post by:
I want to perform a full-text search for a lot of MSWord documents. So that I have to read the MSWord content and store it to the database. However, I cannot find any solution on it. What should I...
7
by: lkr | last post by:
hi is there is anyway to capture the document events of a MSWord?eg:I have to handle the event awhen WM_KEYUP or anyother events will occur. give me a solution............ thanks in advance lkr
1
by: Jason Huang | last post by:
Hi, I have no problem in creating or modifying a word document in ASP.Net, using C#. However, I don't know how to export database in SQL 2000 or MSAccess to MSWord, given in the ASP.Net and C#...
1
by: Jason Huang | last post by:
Hi, To make it short, how do we do the data extraction to MSWord using ASP.Net C#? Any help will be appreciated. Jason
5
by: Y.A. | last post by:
I want to start msWord on the server with an a givene file (.doc), customize the file (update it) then display it on the client machine -- all this on intranet using asp.net. I know it's doable...
6
by: Peter | last post by:
I have to write a ASP.NET application that creates MSWord document from a template and populated with data from the webpage. (Templates can reside on the server or client's hard drive.) What is...
7
by: rinku123 | last post by:
suppose in vb form are more then one textbox which is contain data and i want i click command button it save in msword file and it can replace many times suppose just like we make report). i have...
1
by: Matt Curreri | last post by:
I'm trying to automate the creation of a MSWord document with C#; however, when I start creating the MSWord document, I occassionly have a MSWord dialog box displaying a warning of low memory and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.