473,419 Members | 1,925 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,419 software developers and data experts.

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 4599
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*********@discussions.microsoft.com> wrote in message
news:58**********************************@microsof t.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*********@discussions.microsoft.com> wrote in message
news:58**********************************@microsof t.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*********@discussions.microsoft.com> wrote in message
news:D9**********************************@microsof t.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*********@discussions.microsoft.com> wrote in message
news:58**********************************@microsof t.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
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,...
2
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: ...
3
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
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
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 "<" &...
0
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...
10
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...
0
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...
0
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...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
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
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...
0
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...
0
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...

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.