How to save a complete webpage using the built-in webbrowser in c#

Posted by Mike on Stack Overflow See other posts from Stack Overflow or by Mike
Published on 2010-06-08T17:31:02Z Indexed on 2010/06/08 17:32 UTC
Read the original article Hit count: 182

Filed under:
|
|
|

Overall I am trying to write out a webpage to PDF. There is a web service that I can use to convert a file to pdf. So what I am trying to do is save out a webpage from the WebBrowser winforms control.

I have already tried writing it out the document stream but that just gives me the html of the page and not the images that are used with it.

Another way that I looked into, but have not been successful with, is trying to create an image of the WebBrowser document. I found some examples on the web that utilize the DrawToBitmap function but none of them have worked for me.

Any assistance would be grateful.

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET