Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting the default printer
Message
 
 
À
12/07/2002 05:38:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00677896
Message ID:
00677946
Vues:
21
>I downloaded the program which makes a pdf file from VFP reports.
>It works great but it requests the default printer to be a Generic PDF printer.
>Is it possible ( I'm sure it is) to programmatically set the default printer to the request one ?
>
You can change printer in VFP with SET PRINTER command.
SET PRINTER TO NAME < printer name >
? SET("PRINTER,3")    && Display curent VFP printer 
You can change default windows printer using WSH
lcSaveWinDefPrinter = SET("PRINTER", 2)
loNet = CREATEOBJECT("WScript.Network")
loNet.SetDefaultPrinter(< printer name >)
...
loNet.SetDefaultPrinter(lcSaveWinDefPrinter)
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform