Print in two printer in same times

CocheLuis

New Member
i need help , I can print files in two printers in the same time in Progress 8,
examples

output to printer1.

Put "sample1".

output to close.


output to printer2.

Put "sample1".

output to close.

this sample not work, only if the printer is the default work but the another no print nothing, my english is not good, Thanks
 
U

Unregistered

Guest
Do you have to actually print to two printers? You could output the info to two different files then print those files after you're done.

It should go something like this:

define stream s1.
define stream s2.
output stream s1 to "myfile1".
output stream s2 to "myfile2".
put stream s1 "claro que si".
put stream s2 "si se puede".
close stream s1.
close stream s2.
/* assuming unix */
os-command("lp -dlp1 myfile1"),
os-command("lp -dlp2 myfile2").
/* be sure to remove if you wish... */

Hope that helps!

Mike Kinney
kinneym@cascade.com
 
Progress 8 only supports

OUTPUT TO PRINTER.
-or-
OUTPUT TO os-device.

the commands:

OUTPUT TO printer1.
OUTPUT TO printer2.

should be a compile errors!


Try:

OUTPUT TO lpt1:.
-or-
OUTPUT TO lpt2:

Under progress 9 you can say:

OUTPUT TO PRINTER \\computername\printername.
 
Top