Create Word doc from HTML by code

S

Shaw

Hi all, I have a task to create a Microsoft Word document from a html
document. It’s part of Microsoft Word automation code (it means VB or .NET
code).

The automation code will read html stream and build word document with some
formats similar to html.

I don’t have clue. Anyone knows how to do it? Or where can I find that
information (components can buy, or even where to post this information
properly).

Thanks.
Shaw
 
J

Jay Freedman

Hi all, I have a task to create a Microsoft Word document from a html
document. It’s part of Microsoft Word automation code (it means VB or .NET
code).

The automation code will read html stream and build word document with some
formats similar to html.

I don’t have clue. Anyone knows how to do it? Or where can I find that
information (components can buy, or even where to post this information
properly).

Thanks.
Shaw

Save the html stream as a real html file. Then just use File > Open to
open the html file, and then use File > Save As to save it as a Word
file. Let Word's input and output filters do all the work.
 
S

Shaw

Thanks Jay. It looks that Word automate code allows to open an .html file.
That’s great!

Shaw
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top