473,899 Members | 3,752 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
Jul 3 '08 #1
8 1200
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
Jul 3 '08 #2
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" <Fa************ @discussions.mi crosoft.comescr eveu na
mensagem news:8C******** *************** ***********@mic rosoft.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

Jul 3 '08 #3

"Christiano " <cd****@digiexp ress.com.brwrot e in message
news:%2******** ********@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" <Fa************ @discussions.mi crosoft.comescr eveu na
mensagem news:8C******** *************** ***********@mic rosoft.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

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.cescreve u na mensagem
news:O4******** ******@TK2MSFTN GP06.phx.gbl...
>
"Christiano " <cd****@digiexp ress.com.brwrot e in message
news:%2******** ********@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" <Fa************ @discussions.mi crosoft.comescr eveu na
mensagem news:8C******** *************** ***********@mic rosoft.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

Jul 3 '08 #5

"Christiano " <cd****@digiexp ress.com.brwrot e in message
news:%2******** *******@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:O4******** ******@TK2MSFTN GP06.phx.gbl...
>>
"Christiano " <cd****@digiexp ress.com.brwrot e in message
news:%2******* *********@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" <Fa************ @discussions.mi crosoft.comescr eveu
na mensagem news:8C******** *************** ***********@mic rosoft.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

Jul 3 '08 #6
On 2008-07-03, Christiano <cd****@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:O4******** ******@TK2MSFTN GP06.phx.gbl...
>>
"Christiano " <cd****@digiexp ress.com.brwrot e in message
news:%2******* *********@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" <Fa************ @discussions.mi crosoft.comescr eveu na
mensagem news:8C******** *************** ***********@mic rosoft.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
Jul 3 '08 #7
"Christiano " <cd****@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/>
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*********@co mcastXXXXXXX.ne tescreveu na mensagem
news:Ov******** *************** *******@comcast .com...
On 2008-07-03, Christiano <cd****@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:O4******* *******@TK2MSFT NGP06.phx.gbl.. .
>>>
"Christiano " <cd****@digiexp ress.com.brwrot e in message
news:%2****** **********@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" <Fa************ @discussions.mi crosoft.comescr eveu
na
mensagem news:8C******** *************** ***********@mic rosoft.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

Jul 4 '08 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1668
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
1708
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 do if I want to perform a full-text search for these MSWord documents? or any alternative solution for me?? Thanks Best Regards, Eilsa
7
2079
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
2077
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# environment. I surfed the net and found some articles about interop ASP.Net with the MSWord. But I didn't find resource regarding using the MSWord as the ASP.Net C# report.
1
1938
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
1199
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 with some javascript using ActiveX -- is anyone aware for another way to do it
6
1832
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 the best way to do this? Is it good idea to have MSWord installed on the server? If it's not a good idea or if MSWord is not installed on the server what are the alternatives? I am using Office 2003. Thank You
7
3693
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 no experience about it i seen a exe file of vb6. which contain a msword file in this file some label & textbox control is placed i dont know how is it. and when i press commnd button which is in vb6 form. its data display i msword file Label...
1
2598
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 asking if I would like to continue (Yes, No, Cancel). Is there a way to send the "Enter" or mouse click to this MSWord Dialog Box to invoke the "Yes" option, which will allow the MS Word to continue? I would appreciate any help... Matt
0
9997
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9843
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10493
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
8039
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7201
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5886
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6081
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4720
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4299
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.