Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Print an activeX
Message
De
07/05/2000 14:32:36
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00367065
Message ID:
00367101
Vues:
14
>I want to print the contents of an ActiveX control. I have been advised to use VSVIEW from VideoSoft.
>
>In their VB example, they use the .hWnd property of the ActiveX control. I asked them how to do this in VFP, but they don’t support VFP.
>

If the property is there in VB as a public member, you can reference it in VFP as well; if the ActiveX control's property is called hWnd, try:

OleObjectName.hWnd

or

OleObjectName.Object.hWnd

to retrieve the value. If the Control supports printing in VB, it should be able to use the same interface as VB; if it requires a Device Context for the printer, you'll need to use the Win32 API function CreateDC() to create an hDC for your use.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform