Insert HTML into a word document

S

Sylvain

Does anybody know how to insert html into word programmatically?

I'm using VB.net and I would like to add some html into a word
document, but all I can do is insert the actual text, I want bullets to
appear instead of <UL>.

I tried using the clipboard, I get a command failed error.

Any help would be appreciated.

Thanks,

sylvain.
 
S

Sylvain

I managed to do this by creating an html file containing all my html
code (u need these tags <html><body>...</body></html> or else it won't
work even if it looks alright in IE), then inserted the file using the
selection.insertFile() method in a word document.

This seems to be the only way to do it.
 

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