Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SET PRINTER TO NAME Not Working
Message
From
16/08/2016 12:44:49
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
SET PRINTER TO NAME Not Working
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows Server 2012 R2
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01639524
Message ID:
01639524
Views:
155
I've been trying to figure out why reports are always printing to the default printer. I started with the following three commands.My expectation was that the SYS(2001,'PRINTER TO',2) would return the the name of the printer selected but is doesn't it returns the windows default printer consistently.

lcPrinterName = GETPRINTER( )
SET PRINTER TO NAME (lcPrinterName)
? SYS(2001,'PRINTER TO',2)

What am I missing here? Am I looking over something simple?

TIA
Jeff
Next
Reply
Map
View

Click here to load this message in the networking platform