Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printer selection in Windows 2000
Message
De
17/01/2002 17:22:30
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Printer selection in Windows 2000
Divers
Thread ID:
00606440
Message ID:
00606440
Vues:
59
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?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform