Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Thu, 3 Jul 2008 08:59:49 -0300,    group: microsoft.public.dotnet.languages.vb        back       


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
date: Thu, 3 Jul 2008 08:59:49 -0300   author:   Christiano

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.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 
> 
> 
>
date: Thu, 3 Jul 2008 11:06:02 -0700   author:   Family Tree Mike

Re: Parse MSWord Files...   
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"  escreveu na 
mensagem news:8C820FCD-5409-4DDC-B6E3-3D73B247E8CC@microsoft.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
>>
>>
>>
date: Thu, 3 Jul 2008 15:25:34 -0300   author:   Christiano

Re: Parse MSWord Files...   
"Christiano"  wrote in message 
news:%23pI$YkT3IHA.5088@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"  escreveu na 
> mensagem news:8C820FCD-5409-4DDC-B6E3-3D73B247E8CC@microsoft.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
date: Thu, 3 Jul 2008 14:31:32 -0400   author:   Lloyd Sheen a@b.c

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.c> escreveu na mensagem 
news:O4YxKsT3IHA.2348@TK2MSFTNGP06.phx.gbl...
>
> "Christiano"  wrote in message 
> news:%23pI$YkT3IHA.5088@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"  escreveu na 
>> mensagem news:8C820FCD-5409-4DDC-B6E3-3D73B247E8CC@microsoft.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
date: Thu, 3 Jul 2008 15:44:45 -0300   author:   Christiano

Re: Parse MSWord Files...   
"Christiano"  wrote in message 
news:%230UjGvT3IHA.784@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.c> escreveu na mensagem 
> news:O4YxKsT3IHA.2348@TK2MSFTNGP06.phx.gbl...
>>
>> "Christiano"  wrote in message 
>> news:%23pI$YkT3IHA.5088@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"  escreveu 
>>> na mensagem news:8C820FCD-5409-4DDC-B6E3-3D73B247E8CC@microsoft.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
date: Thu, 3 Jul 2008 14:50:30 -0400   author:   Lloyd Sheen a@b.c

Re: Parse MSWord Files...   
On 2008-07-03, Christiano  wrote:
> 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.c> escreveu na mensagem 
> news:O4YxKsT3IHA.2348@TK2MSFTNGP06.phx.gbl...
>>
>> "Christiano"  wrote in message 
>> news:%23pI$YkT3IHA.5088@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"  escreveu na 
>>> mensagem news:8C820FCD-5409-4DDC-B6E3-3D73B247E8CC@microsoft.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
date: Thu, 03 Jul 2008 16:39:16 -0500   author:   Tom Shelton

Re: Parse MSWord Files...   
"Christiano"  schrieb:
>    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/>
date: Fri, 4 Jul 2008 00:49:24 +0200   author:   Herfried K. Wagner [MVP]

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"  escreveu na mensagem 
news:OvSdnY1tQaeZ2vDVnZ2dnUVZ_hWdnZ2d@comcast.com...
> On 2008-07-03, Christiano  wrote:
>> 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.c> escreveu na mensagem
>> news:O4YxKsT3IHA.2348@TK2MSFTNGP06.phx.gbl...
>>>
>>> "Christiano"  wrote in message
>>> news:%23pI$YkT3IHA.5088@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"  escreveu 
>>>> na
>>>> mensagem news:8C820FCD-5409-4DDC-B6E3-3D73B247E8CC@microsoft.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
date: Fri, 4 Jul 2008 08:45:47 -0300   author:   Christiano

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us