>Dear folks:
>
>I want to print one job in lpt1 and other job in lpt2. So I tried to use set printer to lpt1 and send printing job to printer, and set printer to lpt2 and send printing job to printer. But two jobs printed out to lpt1 printer.
>
>I used set printer to name XXX(lpt2) and send the data. but VFP change the printer to that name still does not print two job separately in two printer.
>It prints only one printer either lpt1 or lpt2.
>
>Is there any who can help me with this?
>
>Thank you in advance.
If you are using a variable to hold the printer name you need to enclose the name in parentheses (). Your code should probably look like
SET PRINTER TO NAME (PrinterName). This works fine for me.
Larry Huisingh
Lockheed Martin Information Technology
Richland WA USA