Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PRINT TO FILE
Message
From
28/11/1999 12:43:12
 
 
To
28/11/1999 11:34:54
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00295649
Message ID:
00296151
Views:
21
>Hi,
> I get the point here. However, I don't know how to get my .txt file (created by REPORT FORM .... TO FILE command) to be printed as I designed programmatically. Cetin told me to use TYPE command but it doesn't work. The file was printed unproperly with funny character.
> How could I get my report (saved in .txt file) to be printed as usual?
>

If you've printed it formatted for a specific printer, then you can only send it to a printer of that type, and it has to be sent raw to the desired printer using something like the CopyFile() API that I wrote up in the FAQ. If it's formatted for a specific printer, it also cannot be viewed on-screen. It's suitable only for output to the targeted printer.

If it's a pure ASCII text file, created with the ASCII clause in the REPORT statement, or output using the Generic/Text Only printer driver, Cetin's technique works fine. If you use this approach, you must avoid any use of proportional fonts, must not use any font attributes like boldface, cannot resize the font - IOW, the instant that you use any of the Windows hardware-independence features to make your output look better, you're fried. It is not going to work in a reliable fashion.

John, this has been explained to you several times before - the answer doesn't change.
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