Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GdiPlusX Taking the best form Snapshot
Message
 
To
30/04/2008 12:49:52
General information
Forum:
Visual FoxPro
Category:
VFPX/Sedna
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01313831
Message ID:
01314358
Views:
10
>PNG works for me. I am capturing ActiveX with GdiPlusX quiet good. Now
>is there way to capture ActiveX image without ActiveX actually being visible ? GdiPlusX throws error if part of control is hidden by
>form border for instance. How about that oActivex.SelPrint() method
>can this be used to capture activex as well ?
>
>I found somewhere example of printing it via printer hdc, so I was thinking if it possible somehow to 'cheat' it to 'print' into bitmap instead.
>
>Is this possible ?

Every ActiveX control should implement the IViewObject interface which has a Draw method. You can use this to render the ActiveX control to any device context. This is nearly impossible with pure VFP code, it is much simpler using VC++, but still a tedeous task.

This technique is what Moxie Objects uses to render ActiveX controls onto VFP reports with a higher than normal resolution. (http://www.moxiedata.com/objects.html)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform