Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to avoid new page when SET PRINTER TO?
Message
From
04/04/2000 21:21:27
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00355388
Message ID:
00355428
Views:
21
>Is it possible ?
>

It's a function of the interaction of VFP and the Windows spooler - the Windows spooler attempts to provide each spooled document with a known, clean state of the printer (believe it or not, things besides your app talk to the printer, too) and each time you SET PRINTER TO something you've started a fresh spool job. If you can make Windows not consider it necessary to start at top of page (and AFAIK, the only print device that gives this option is the Generic driver, which gives you 0 Windows printer control capability).

The solution to this problem is (1) don't send the output through a Windows print tool, getting around all spooler issues at the cost of losing all GDI services or (2) handle the spooling task yourself, sending output to a file and then when it's all done, sending the whole file as a single, continuous 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