Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Printing an HTML file with Win32 API's...

Reply
Thread Tools

Printing an HTML file with Win32 API's...

 
 
sammy_lb_2000@netzero.com
Guest
Posts: n/a
 
      10-04-2005
Hello Group,

Can I print an HTML file by using the Win32 API's functions ?

for example,

CreateDC()
StartDoc()

http://msdn.microsoft.com/library/de...vcons_5g83.asp


http://msdn.microsoft.com/library/de...tspol_95sz.asp

Thanks for help.

 
Reply With Quote
 
 
 
 
Oli Filth
Guest
Posts: n/a
 
      10-04-2005
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 (bearing in mind that a CHtmlView probably renders
similarly to IE, i.e. shite). But this is a question that should be
asked in a Win32/MFC/.NET NG, as it has nothing to do with HTML per se.

--
Oli
 
Reply With Quote
 
 
 
 
rf
Guest
Posts: n/a
 
      10-05-2005
Oli Filth wrote
> 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.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
brochure printing,online yearbook,printing,books printing,publishing elie Computer Support 2 11-27-2010 12:12 PM
brochure printing,online yearbook,printing,books printing,publishing elie Computer Support 0 08-21-2007 05:52 AM
brochure printing,online yearbook,printing,books printing,publishing elie Computer Support 0 08-21-2007 05:50 AM
brochure printing,online yearbook,printing,books printing,publishing elie Computer Support 0 08-21-2007 05:28 AM
brochure printing,online yearbook,printing,books printing,publishing elie Computer Support 0 08-18-2007 10:11 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57