Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set printer to name
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Set printer to name
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01058143
Message ID:
01058143
Vues:
50
Hi guys,

I have an exe printing a report as follows:
use sysfile
set printer to name (alltr(sysfile.printer2)) && sysfile.printer2="PDF PRINTER"
report form rptinvoice.frx to printer noconsole nodialog
and among my installed printers, I've got:
printer 1: HP LASER(marked as the default)
printer 2: PDF PRINTER(is the printer in sysfile.printer2 field)
The problem is that the output keeps going to the defaut printer which is HP LASER.
If I set printer 2 as the default printer then it works. It would appear that VFP is ignoring the SET PRINTER TO NAME command.

Any pointer will be greatly appreciated!

TIA
Dawa Tsering


"Do not let any unwholesome talk come out of your mouths,
but only what is helpful for building others up according to their needs,
that it may benefit those who listen."

- Ephesians 4:29-30 NIV

Dare to Question -- Care to Answer

Time is like water in a sponge, as long as you are willing you can always squeeze some.

--Lu Xun, Father of Modern Chinese Literature

Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform