Theo's Forum

Archive => Discussion - Legacy Software (PBWIN 9.0+/PBCC 5.0+) => Topic started by: Edwin Knoppert on August 23, 2009, 05:19:47 PM

Title: Draw HTML to DC - cool!
Post by: Edwin Knoppert on August 23, 2009, 05:19:47 PM
Now this is cool!
You can simply obtain the IViewObject from the webcontrol and use it to draw the html to any DC you like.
This means it may be useful to create snapshots or print html as image in a preferred layout (guessing)

I haven't explored it yet bit it was something i wanted, QHTM was an alternative.

Here is the PureBasic code, maybe i rewrite this to PowerBASIC.. ever.. :)

http://www.purebasic.fr/english/viewtopic.php?t=38737&highlight=&sid=d0fff11adac6d154ee302532d75c65ea

I have included an exe and a PBDev project for brief peeking.
Title: Re: Draw HTML to DC - cool!
Post by: José Roca on August 23, 2009, 06:41:47 PM
 
You can use the OleDraw function instead.

http://msdn.microsoft.com/en-us/library/ms692711%28VS.85%29.aspx
Title: Re: Draw HTML to DC - cool!
Post by: Edwin Knoppert on August 23, 2009, 07:18:14 PM
Nice!