Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change Windows default printer
Message
From
05/02/2007 05:54:40
 
 
To
05/02/2007 05:41:13
Aman Bains
Jaguar Computers
Jalandhar, India
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows '98
Miscellaneous
Thread ID:
01192297
Message ID:
01192318
Views:
23
>>How to Change Windows default printer in Win 98 programatically?
>
>
>DECLARE INTEGER SetDefaultPrinter IN WINSPOOL.drv STRING pszPrinter
>lcPrinter = GETPRINTER()
>SetDefaultPrinter(lcPrinter)
>
>
>Gives error in Win 98:-
>"Cannot find entry point SetDefaultPrinter in the DLL", Error No 1754.
>
>How to change Default printer in Win 98?

Sorry, that command will works only with Win2000 and above.
Windows 95/98/Me: Unsupported.

Check:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/prntspol_027m.asp
to see how to do it for older versions.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform