Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Access the content of a general field
Message
De
23/11/1999 07:36:41
 
 
À
23/11/1999 07:30:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Photos et traitement d'images
Divers
Thread ID:
00294239
Message ID:
00294281
Vues:
46
>>>>Do you want to print the BMP through the VFP report writer or through the Windows API?
>>>I want to print it through the Win32 API. But I cannot access the content of the genral field.
>>
>>Correct - by using a General field , you've given up direct access to the field content, relying instead on the services provided by the application handling the general field for VFP. If you want to access the content without relying on the server, you'd need to store the binary bitmap data in a memo field and extract it to a file for the API call to reference.
>
>100% accurate. But what if I want to ask the server to print the content of the general field instead of displaying it on the screen? The server application (paintbrush) certainly can do it, but how can I use this service? I thought that I can relly on the Object property of OleBound control, but the Object property is actually NULL...

You'd have to tell the General field's server to use an available Print function through its implied call to ShellExecute(). Since there's no way I'm aware of to link to the General field through the API, you're stuck with using internal tools in VFP that know how to do this. If the data could be extracted from the General field, then the server's verb could be invoked through ShellExecute()/ShellExecuteEx(), but you've precluded this as a solution by using a General field.

IOW, you can't get there from here.
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