Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Name default printer
Message
From
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:
01136322
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.
>
>
>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.

Update: But I will say that Tore changed the message about the same time I was responding, so I can see the confusion.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform