Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Name default printer
Message
De
14/07/2006 06:43:15
 
 
À
14/07/2006 06:39:38
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01136314
Message ID:
01136320
Vues:
10
>>>>>Hi all,
>>>>>
>>>>>How can a get the name of the default printer...
>>>>>
>>>>>João Batista
>>>>
>>>>
?Set("printer",1) && FileName or PortName
>>>>?Set("printer",2) && Default Windows printer name
>>>>?Set("printer",3) && Default Visual FoxPro printer name(specified in the Visual FoxPro Print or Print Setup dialog boxes)
>>>>
>>>
>>>I tried this and it didn't like the parameters after "printer" in the SET.
>>
>>No way. What version of VFP?
>>This must works on VFP 8 and 9.
>
>Way.
>
>Using 8 sp2. The following line:
>
>
>?Set("printer",0)
>
>
>returns the "Function argument value, type, or count is invalid." error.

Sorry, see my UPDATED message, 0 is an illegal parameter.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform