Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SET PRINTER TO NAME doesn't seem to work
Message
 
To
13/04/2000 20:22:21
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00357635
Message ID:
00359613
Views:
8
You said NT network, but did not specify what the workstation OS was. At least in VFP5, NT does not respect the set printer to name. NT will only recognize UNC printer names (set printer to \\server\printer).

My VFP app was running on a mix of Win 95 and NT Workstation machines and when I wanted to programmatically select the printer (like sending invoices to the invoice printer) I had to check the OS at program start and use code like this:

if mOpSys = 'NT'
set printer to \\atmex\invoice
else
set printer to name 'invoice'
endif

repo form invoice to print noconsole
set printer to default
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform