Embed html in Word using Microsoft.Office.Interop.Word

S

Supriya

Hi all,
I have HTML code(not file). How can I view the data in the wod document.
For example
HTML code:
<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>Sample HTML
data.</body></html>

Data should appear in the cell is "Sample HTML data"

Is there any class or Interface in the library to handle that?

Please help me.

Thanks in Advance

Supriya
 
C

Cindy M.

Hi Supriya,
I have HTML code(not file). How can I view the data in the wod document.
For example
HTML code:
<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>Sample HTML
data.</body></html>

Data should appear in the cell is "Sample HTML data"

Is there any class or Interface in the library to handle that?
No. For anything other than Word 2003 WordProcessingML Word requires a
converter. And the converters are only accessible when
- you paste HTML from the Clipboard
- open/insert HTML from a file

If you don't want to do that, then you have to "transform" the HTML into
valid object model commands.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

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

Similar Threads


Top