Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Name default printer
Message
 
To
14/07/2006 06:52:13
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01136314
Message ID:
01136323
Views:
8
>>>>>>>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.
>
>Yep, but all I said is it gave me an error. You said it worked. It didn't.


:-)
Yes, with 0 as parameter it didn't works. Maybe I read Tore's updated message where He changed 0 to 1?
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform