Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sending to Multiple Printer
Message
From
21/11/2002 13:36:36
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00725358
Message ID:
00725368
Views:
12
Kirk,

No need to change VFP default printer...
lcPrinter1 = "\\serverName\printer1"
lcPrinter2 = "\\serverName\printer2"

set printer to name (lcPrinter1)
report form report1 to print noconsole
set printer to name (lcPrinter2)
report form report1 to print noconsole
If you do want to know current VFP default printer, look at set("printer",3). Also, you need to make sure printer specific info is stripped from you reports, to make sure they actually go to the correct printer.


>Client request that when then send a report to print, a particular report in this case, that is get printed to two additional printers at the same time. So I was thinking I could store the printer string from the getprinters() function into a table. Then when they hit the print button, I could send it to each one. First...is this a sensable way to do it, and number two, can the "Report form" command send it to a specific printer, or do I have to issue a set printer to, report form, set printer to, report form and then set it back to what is was before. And how can I get what it was before?
>
>Thanks
>Kirk
Steve Gibson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform