Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP how to control the paper ?
Message
From
04/10/2000 03:26:07
 
 
To
04/10/2000 02:41:29
Stanley Yip
Shun Sang (technology) ltd Hong Kong
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00424569
Message ID:
00424575
Views:
13
>There are two paper tary in HP printer .
>I want my program can select one of the tary to print out the report. What can I do in VFP ?
>( one tary is for the pre-printed form and one tary is blank paper)
>I don't want the user to select the tary everytimes before printing.

You can set this via Page Setup in the VFP File menu; just make sure that the printer you want is available, with the proper driver, and with the name used for the printer at the target system. THe printer information will be stored in the FRX

DOing this will result in giving up hardware independence. I prefer to create my report via Word automation, which has greater control over page layout than VFP's report writer. You can also write the printer output to a file (not send the VFP report to the printer - you take over the formatting responsibilities) and add appropriate print codes to the output stream. The resulting file would be printed by sending it directly to the target printer as a raw stream - you have to keep Windows out of the process to do this.
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