Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Name default printer
Message
From
14/07/2006 06:39:38
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
14/07/2006 06:30:08
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:
01136319
Views:
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform