|
Posted by rf on 11/17/14 11:28
Oli Filth wrote
> sammy_lb_2000@netzero.com said the following on 04/10/2005 23:08:
> > Hello Group,
> >
> > Can I print an HTML file by using the Win32 API's functions ?
> >
> > for example,
> >
> > CreateDC()
> > StartDoc()
> >
>
> If you can find an appropriate renderer, such as MFC's CHtmlView, then
> of course you can
No, you can't.
MSHTML, the collection of objects that CHtmlView wraps, does not expose
anything you could use a DC on. MSHTML handles all printing, and screen
output for that matter, internally. Basically, if you can't do it with
jscript then you can't do it with MSHTML, or CHtmlView.
The closest you can get (apart from the IHTMLWindow3.print method) is print
templates (search microsoft.com).
Cheers
Richard.
Navigation:
[Reply to this message]
|