Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting windows default printer under Win XP
Message
From
26/09/2003 08:48:01
Larry Long
ProgRes (Programming Resources)
Georgia, United States
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00832569
Message ID:
00832623
Views:
14
I thought WinXP came after Win2000. Is ther another API call I can make?

>The SetdefaultPrinter function is only included in Windows 2000 and later.
>
>>What am I doing wrong? Using VFP8, I am issuing the following...
>>
>>Receipt_Printer = GETPRINTER()
>>
>>* Declare the API call, NOTICE the specific name
>>* for the DLL here!
>>DECLARE Integer SetdefaultPrinter IN WINSPOOL.DRV String
>>
>>* Set the printer
>>SetDefaultPrinter( (Receipt_Printer) )
>>
>>but get an error messge saying that it can't find the entrypoint.
>>
>>HELP!
L.A.Long
ProgRes
lalong1@charter.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform