Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to set the default printer?
Message
De
08/12/2003 05:55:34
Michale Chen
Shijiazhuang ZhiYuan Crop.
Shijiazhuang, Chine
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
How to set the default printer?
Divers
Thread ID:
00856774
Message ID:
00856774
Vues:
97
Hello everyone:

Could you gave me some advice on how to set the default printer? I want to using the following code but it didn't work, it return cann't found the dll entrance. Thank you.

LOCAL lcOldPrinter AS String, ;
lcNewPrinter AS String

lcOldPrinter = SET("Printer", 2)
lcNewPrinter = GETPRINTER()
IF NOT EMPTY(lcNewPrinter)
SET PRINTER TO NAME (lcNewPrinter)
ENDIF


* Declare the API call, NOTICE the specific name
* for the DLL here!
DECLARE Integer SetdefaultPrinter IN ;
WINSPOOL.DRV String

* Set the printer
SetDefaultPrinter( (lcNewPrinter) )
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform