471,108 Members | 1,585 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,108 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 4308
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Henrik Skak Pedersen | last post: by
3 posts views Thread by Nikolay Petrov | last post: by
3 posts views Thread by iwdu15 | last post: by
6 posts views Thread by PenguinPig | last post: by
reply views Thread by Mike Collins | last post: by
reply views Thread by Reedick, Andrew | last post: by

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.