X-POST: Moving WebBrowser HTML Content to Word ActiveDocument

K

Ken Wilson

I am currently working on an add-in for Word that communicates with a
server to obtain various items and displays the results in a
WebBrowser control. The information is obtained from the server
either directly as HTML or as XML with the appropriate XSLT. Once
viewed I want to allow the user to be able to save the results into
the ActiveDocument.

This is where I have run into a stumbling block. I am able to save
the document to disk and then retrieve it into Word but it is rather
ugly and includes having a SaveAs dialog in between steps. I would
much rather have the entire process be seamless for the end user.

Is there a way to move the realized HTML document into Word's
ActiveDocument in memory without going through the process of creating
an intervening file? If not, is there a way I can at least stop the
SaveAs dialog from intruding into the operation.
 

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