Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need to print to use 2 printers simultaneously
Message
From
31/03/2000 17:23:52
 
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00353547
Message ID:
00353681
Views:
12
>>>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...
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform