You are here: Re: Printing an HTML file with Win32 API's... « HTML « IT news, forums, messages
Re: Printing an HTML file with Win32 API's...

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация