Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Name default printer
Message
 
À
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:
01136321
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.


SET([Printer]) accepts only 1,2,3 as additional parameters, you could use only these statements:
? SET([PRINTER])   && ON/OFF condition
? 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)
Check HELP for SET() function.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform