Discussion:
Getting IPrint or IHTMLIPrintCollection from HTMLDocument
(too old to reply)
Holger
2011-11-16 12:21:02 UTC
Permalink
Hello,

knows anyone how to get the IPrint interface or IHTMLIPrintCollection
(in mshtml) from an active HTMLDocument? Seen in the IE8 SDK it should
be implemented. Looking up with IDispatch, ITypeLib and ITypeInfo
don't found such interface for this class. Or know anyone where or how
it is implemented in the WebBrowser?

I need this for a solution to print the HTML document in a file with a
specified printer.

Otherwise is there a good usable solution to convert/print HTML
documents into PDF?


Kindly regards from Berlin

Holger Boskugel
--
http://www.vbwebprofi.de
b***@gmail.com
2013-09-26 15:09:30 UTC
Permalink
Post by Holger
Hello,
knows anyone how to get the IPrint interface or IHTMLIPrintCollection
(in mshtml) from an active HTMLDocument? Seen in the IE8 SDK it should
be implemented. Looking up with IDispatch, ITypeLib and ITypeInfo
don't found such interface for this class. Or know anyone where or how
it is implemented in the WebBrowser?
I need this for a solution to print the HTML document in a file with a
specified printer.
Otherwise is there a good usable solution to convert/print HTML
documents into PDF?
Kindly regards from Berlin
Holger Boskugel
--
http://www.vbwebprofi.de
Did you ever figure out how to solve this problem?

Thanks,

Brad

Loading...