Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set printer to name
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Set printer to name
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01058143
Message ID:
01058143
Views:
46
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

Next
Reply
Map
View

Click here to load this message in the networking platform