>>>Hi,
>>>
>>>I need to have all of the user-selected reports print to an HP on LPT1 while a running log prints activity to a dot matrix attached to LPT2. So I'm thinking I'll "SET PRINTER TO LPT2" then print the line, then "SET PRINTER TO LPT1"...
>>>
>>>Sound like that'll work?
>>>
>>>Any "gotchas" I should be aware of?
>>
>>Yep - each separate "SET PRINTER" terminates the previous printed output session as I remember - you'll end up with lots of one-line outputs....each on a new page.
>
>Oh... just < bleep >ing WONDERFUL! So the SET PRINTER sends a form feed? Any way around that?
>
Well, the obvious approach of not relying on Windows to manage your print device for at least one of the output streams, perhaps using SET ALTERNATE or using LLFIO for your running log. It Windows' job to make sure that each print job starts with the printer in a known state, and one of the effects of doing a SET PRINTER TO
blah blah woof woof is to tell Windows that you've completed your stream to the device, so that it can safely release the spooled information for the device as a complete stream. We see this elsewhere, in people who insist on trying to intermix output from Report Writer and direct print stream interaction using ???, and end up with several sections split up as a result - Report Writer stream, then a stream based on ???, then more report writer stream...