By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,835 Members | 1,959 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,835 IT Pros & Developers. It's quick & easy.

Convert word doc to HTML

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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.