473,898 Members | 4,391 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Convert word doc to HTML

I've got a requirement to build a page using MS WORD and then have the page
show up on a web site. I know I can do a binary write and open up the WORD
document in IE plugin. Don't really want to do this because it displays in
the word editor. What I'm looking for is a way to upload the WORD document to
the server (I know how to do this using the HTML Upload control) then take
the WORD document and run it thru some kind of converter class and convert to
HTML, then if I can do a response write or something to a panel on the page
(without the body and head tags of course, since they are already there on
the existing page). The ultimate goal is to show this converted WORD doc in
an existing HTML page. There are also imbedded images in the WORD doc.

Is there any articles out there on how to do this?

--
Chris Davoli

Nov 30 '05 #1
3 4695
Chris,

You can achieve this by:
Add reference to Microsoft Word Object Library from COM tab in Add Referece
dialog
Use Document interface's SaveAs method to save page as web page.
"Chris Davoli" <Ch*********@di scussions.micro soft.com> wrote in message
news:58******** *************** ***********@mic rosoft.com...
I've got a requirement to build a page using MS WORD and then have the
page
show up on a web site. I know I can do a binary write and open up the WORD
document in IE plugin. Don't really want to do this because it displays in
the word editor. What I'm looking for is a way to upload the WORD document
to
the server (I know how to do this using the HTML Upload control) then take
the WORD document and run it thru some kind of converter class and convert
to
HTML, then if I can do a response write or something to a panel on the
page
(without the body and head tags of course, since they are already there on
the existing page). The ultimate goal is to show this converted WORD doc
in
an existing HTML page. There are also imbedded images in the WORD doc.

Is there any articles out there on how to do this?

--
Chris Davoli

Nov 30 '05 #2
Nilesh, that is a wonderfull idea. Thanks, but is there any documentation on
how to use the word SaveAs method?
--
Chris Davoli

"Nilesh Deshpande" wrote:
Chris,

You can achieve this by:
Add reference to Microsoft Word Object Library from COM tab in Add Referece
dialog
Use Document interface's SaveAs method to save page as web page.
"Chris Davoli" <Ch*********@di scussions.micro soft.com> wrote in message
news:58******** *************** ***********@mic rosoft.com...
I've got a requirement to build a page using MS WORD and then have the
page
show up on a web site. I know I can do a binary write and open up the WORD
document in IE plugin. Don't really want to do this because it displays in
the word editor. What I'm looking for is a way to upload the WORD document
to
the server (I know how to do this using the HTML Upload control) then take
the WORD document and run it thru some kind of converter class and convert
to
HTML, then if I can do a response write or something to a panel on the
page
(without the body and head tags of course, since they are already there on
the existing page). The ultimate goal is to show this converted WORD doc
in
an existing HTML page. There are also imbedded images in the WORD doc.

Is there any articles out there on how to do this?

--
Chris Davoli


Nov 30 '05 #3
Check this:

http://msdn2.microsoft.com/en-us/lib...nt.saveas.aspx

HTH

"Chris Davoli" <Ch*********@di scussions.micro soft.com> wrote in message
news:D9******** *************** ***********@mic rosoft.com...
Nilesh, that is a wonderfull idea. Thanks, but is there any documentation
on
how to use the word SaveAs method?
--
Chris Davoli

"Nilesh Deshpande" wrote:
Chris,

You can achieve this by:
Add reference to Microsoft Word Object Library from COM tab in Add
Referece
dialog
Use Document interface's SaveAs method to save page as web page.
"Chris Davoli" <Ch*********@di scussions.micro soft.com> wrote in message
news:58******** *************** ***********@mic rosoft.com...
> I've got a requirement to build a page using MS WORD and then have the
> page
> show up on a web site. I know I can do a binary write and open up the
> WORD
> document in IE plugin. Don't really want to do this because it displays
> in
> the word editor. What I'm looking for is a way to upload the WORD
> document
> to
> the server (I know how to do this using the HTML Upload control) then
> take
> the WORD document and run it thru some kind of converter class and
> convert
> to
> HTML, then if I can do a response write or something to a panel on the
> page
> (without the body and head tags of course, since they are already there
> on
> the existing page). The ultimate goal is to show this converted WORD
> doc
> in
> an existing HTML page. There are also imbedded images in the WORD doc.
>
> Is there any articles out there on how to do this?
>
>
>
> --
> Chris Davoli
>


Nov 30 '05 #4

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

Similar topics

0
1290
by: edwaldo | last post by:
Hi I'm using Word.ApplicationClass in C# to produce a Word document: Word.ApplicationClass objWord = new Word.ApplicationClass(); Word.Document objWordDoc = objWord.Documents.Add(ref noValue, ref noValue, ref noValue, ref noValue); objWordDoc.Activate(); I then get the data from the database and load it into
2
5008
by: Henrik Skak Pedersen | last post by:
Hi, I am trying to convert a very basic WML document to HTML using the word2HTML.xsl stylesheet. But I get an exception when I am trying to convert it: The code looks like this: XPathDocument xpathdocument = new XPathDocument(docFileName); XslTransform xslt = new XslTransform();
3
1467
by: Nikolay Petrov | last post by:
I want to convert MS Word Document in HTML file. I would like to do it, without having MS Word installed on server. Is this possible?
3
3399
by: iwdu15 | last post by:
hi, how can i convert rtf encoding to HTML? i looked at previous posts and i cant seem to find the HTTPUtility in vbexpress 2005. Is it not there, and is there another way? thanks -- -iwdu15
6
29457
by: PenguinPig | last post by:
Dear All Experts I would like to know how to convert a HTML into Image using C#. Or allow me contains HTML code (parsed) in Image? I also tried this way but it just display the character "<" & ">" directly.... I have done googling, but all return shareware. I would like to know how to programming...but not using shareware... Thanks all.
0
1460
by: Mike Collins | last post by:
I am trying to convert an HTML page to MS Word. The document is dynamically built based on what is stored in our database. I've done this in classic ASP with just an Html meta tag, if I remember correctly, but it is having no effect in ASP.Net 1.1 framework. Using a meta tag (1st one): <meta http-equiv="Content-type" content="application/ms-word;charset=UTF-8"> <meta content="True" name="vs_snapToGrid"> <meta content="Microsoft Visual...
10
2183
by: annalisa | last post by:
I really need some help with langauge conversion to HTML. My translators are translating into Word and I need to convert Word to HTML. It's been awhile since I've worked with Unicode and know that not all the fonts being used are unicode. Is there a way to strip all the junk out of the MS Word filtered (yeah right) HTML. All I want are the basic formatting tags no spans,fonts, divs, css, but I don't want to lose any language identification...
0
1120
by: Reedick, Andrew | last post by:
Word Object Model: http://msdn.microsoft.com/en-us/library/bb244515.aspx Specifically look at Document's SaveAs method. ***** The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other...
0
2307
by: Tim Golden | last post by:
Lave wrote: You have broadly two approaches here, both involving automating Word (ie using the COM object model it exposes, referred to in another post in this thread). 1) Use the COM model to have Word load your doc, and SaveAs it in HTML format. Advantage: it's relatively straightforward. Disadvantage:
0
9994
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
9842
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
11265
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10488
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...
0
7191
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
6079
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4712
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
4298
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3309
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.