Michael Damatov
Michael Damatov

Reputation: 15623

How to make WebBrowser to save its content as an MHT file?

Internet Explorer can save its content as an MHTML file using the "Save As..." menu command. Is this feature exposed by its COM interface?

Upvotes: 1

Views: 2411

Answers (1)

Niyaz
Niyaz

Reputation: 54793

Yes.

It is.

Try something like:

WebBrowser.ExecWB OLECMDID_SAVEAS, OLECMDEXECOPT_PROMPTUSER

BTW to do MHT conversion manually, check out the code by Jeff Atwood.

Upvotes: 1

Related Questions