Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing report to non-default printer
Message
From
21/06/2001 15:07:05
Larry Huisingh
Lockheed Martin Information Technology
Richland, Washington, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Printing report to non-default printer
Miscellaneous
Thread ID:
00522107
Message ID:
00522107
Views:
41
I am trying to allow my program to read the name of the desired report printer from a CONFIG.FPW file and print all its reports to that printer. I can get the printer name from the config file just fine but I can't seem to print to anything other than the current default printer. I know about REPORT FORM ... TO PRINTER PROMPT but there won't be a user there to select a printer each time. (It is kind of like a report server. Data files show up and reports get printed from that data automatically.) I need to be able to do this using code.

I also have read about blanking out the TAG and TAG2 fields in the first record of the FRX file but that didn't make much difference. Output still went to the default printer. I tried using SET PRINTER TO NAME (printername) but that seems to just work with the ? command.

I know it's possible to programmatically change the default printer and thereby fake out the report command but I have other apps running simultaneously that must print to the default printer. I don't want to change the default printer out from under the other program.

Is there any hope of being able to print to a non-default printer without changing the default printer?
Larry Huisingh
Lockheed Martin Information Technology
Richland WA USA
Next
Reply
Map
View

Click here to load this message in the networking platform