AxWebBrowser control save web page

P

Pengyu

Hi,

I host an AxWebBrowser control in my program. How to save
the web page shown in the control?

Thank you very much!

Pengyu
 
N

Nicholas Paldino [.NET/C# MVP]

Pengyu,

What I would do is get the document that the web browser control
exposes. Once you have this, cast that to the UCOMIPersistFile interface in
System.Runtime.InteropServices namespace. Once you have that, call the Save
method on it, and your HTML should be saved to disk.

Hope this helps.
 

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