Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OpenPrinter
Message
From
09/06/1999 13:31:01
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00227946
Message ID:
00228012
Views:
21
>In printer properties there is a setting that indicates if the print job should spool before printing or go directly to the printer. I need to change this programmatically and couldn’t find anything in VFP to do it, so I resorted to the API which has the SetPrinter function which should do what I want. However before calling SetPrinter I must use OpenPrinter which requires a pointer to a structure as a parameter. I can’t get it to work under VFP(Openprinter allways returns 0) Has somebody had experience with this before that cares to offer some suggestions on what to try.
>

Download my CLSHEAP class or Paul-Vlad Tatavu's POINTERS cl;ass and use those to handle the memory management tasks. Both are available for download in the files section here on UT. Both can manage heap allocation and deallocation, data conversions and moving data between VFP variables and the heap.
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
Previous
Reply
Map
View

Click here to load this message in the networking platform