Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I control the printer?
Message
From
18/08/1999 10:43:30
 
 
To
18/08/1999 10:26:58
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00254974
Message ID:
00254987
Views:
19
>Dear all,
>
> After printing a report, I want to scroll the paper for a certain distance. I know EJECT will perform a FORMFEED to the printer. But how can I control the formfeed's distance? If I want to use LINEFEED I need to change the variable _PADVANCE, but I don't know how to set it.
>

AFAIK, you're going to have to completely assume control of the printer, and not use the report writer for any of the printing functionality. This means creating your output using low-level file I/O or creating the output as a string and then creating aprint file using STRTOFILE(), and then copying the resulting file to the printer port (see my FAQ entry on how to copy a file to a printer port for a way of doing that in a reliable fashion.)
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