Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printer selection in Windows 2000
Message
From
17/01/2002 17:22:30
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Printer selection in Windows 2000
Miscellaneous
Thread ID:
00606440
Message ID:
00606440
Views:
60
This happens only under Windows 2000. Works fine under Windows 98.

Using VFP 5.0...

We have a Lexmark T520 Laser and trying to programatically select different trays. We have two different printer devices defined in Windows; one set to use Tray 1, and the other set to use Tray 2. The printer set to use Tray 1 is the Windows default printer.

Here's the code:
*prtname stores the Windows printer name and is user-selectable
cPrinter = ALLTRIM(prtfile.prtname)
SET PRINTER TO NAME (cPrinter)

No matter which printer the user selects, the SET PRINTER command seems to always select the Windows default printer, because it will never pull paper from Tray 2.

Anyone else with a similar VFP/Windows 2000 problem?
Next
Reply
Map
View

Click here to load this message in the networking platform