Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SetDefaultPrinter
Message
From
07/01/2003 23:32:21
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
SetDefaultPrinter
Miscellaneous
Thread ID:
00739183
Message ID:
00739183
Views:
97
Hi!

Currently I use the Windows Scripting Host (WSH) to let the user set any printer as the Windows Default Printer by using the following function.

Function SetWindowsDefaultPrinter(lcPrinter)
Local WshNetwork

WshNetwork = Createobject("WScript.Network")
WshNetwork.SetDefaultPrinter(lcPrinter)

Endfunc

I would like to know what the Windows API equivalent Call would be and if that API Call is the same under Win95, Win98, NT, W2k and XP the reason being that the WSH may not be installed on all PC's as many are runnig Win95.

Thanks

Sarosh
Next
Reply
Map
View

Click here to load this message in the networking platform