tags:

views:

4

answers:

0

hello,

I have a web browser control whose sample data comes from the rawhtml which is - "This is a sample bold text which is underlined.  color of this text is red. " note - replace ig with img. Once the web browser loads the above rawHtml ,I notice that it displays the data appropriately including the image. I would like to show the data of webbrowser control in flowdocument , preserving all the formatting of web browser control . How can I achieve this. I have tried to use the DrawToBitmap method, but this cannot be used . The reason is - On top of the form which displays web browser control , I display another form which has flowdocument inside it. Thus even if I calculate the location of x, y for the webbrowser control to use for DrawToBitmap , it will not help since the new form is diplayed on top of this. I would like to somehow embed what is displayed in webbrowser into a flowdocument.

Any suggestion?