Archive > Discussion - Legacy Software (PBWIN 9.0+/PBCC 5.0+)

Draw HTML to DC - cool!

(1/1)

Edwin Knoppert:
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.

José Roca:
 
You can use the OleDraw function instead.

http://msdn.microsoft.com/en-us/library/ms692711%28VS.85%29.aspx

Edwin Knoppert:
Nice!

Navigation

[0] Message Index

Go to full version