Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing reports to several network printers

Status
Not open for further replies.

JohnRacki

Programmer
Mar 28, 2001
1
US
I currently have a process I do daily for statistics. I send these reports to several department printers on our network but they don't all print where they are directed. In the program I do the following:

SET PRINTER TO NAME "\\networkprinter1"
REPORT FORM i:\daily\stats\report1.frx NOEJECT NOCONSOLE TO PRINTER

SET PRINTER TO NAME "\\networkprinter2"
REPORT FORM i:\daily\stats\report1.frx NOEJECT NOCONSOLE TO PRINTER

SET PRINTER TO NAME "\\networkprinter3"
REPORT FORM i:\daily\stats\report1.frx NOEJECT NOCONSOLE TO PRINTER

SET PRINTER TO NAME "Acrobat PDFWriter"
REPORT FORM i:\daily\stats\report1.frx NOEJECT NOCONSOLE TO PRINTER


There are several places I use this and it works, however there are places in this reporting I use it and it directs 2 to one network printer and one to another leaving no reports at the last or all at one printer.

Can someone kindly inform me as to how this is suppose to be coded without a prompt window for each printer.
I have opened the form and saved it to each network location and the printers are all same.
With exception to the Acrobat report file which does prompt me, and is there a way I can code this to save it from the program rather than the prompt.
Thanks for your insight,
 
modify the report, select the printer save it as 1. Do the same for next printer and save the report as 2 etc.

That's the simplest solution I have found. Hopefully someone else will have a fix from VFP 7.0 perhaps?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top