Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simplest way to print txt file?
Message
 
 
To
15/05/2006 16:59:33
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01122014
Message ID:
01122074
Views:
17
>Naomi,
>
>>The problem with TYPE that it also shows output on the form. I don't see NOSHOW option in this command.
>
>Just answered in my other post in this thread ... wrap TYPE with SET CONSOLE OFF.
>
>>Also how can I set the printer into landscape format before printing? And how can I figure out if it has to be set in this mode?
>
>No idea :(
>
>Another idea: Why not create a simple VFP report that sets landscape orientation and that contains a single stretched text field. Load your text file contents into a one record/one memo field cursor used as the source table for your report.
>
>Added benefits to above technique:
>- your own custom headers and footers (page numbers!)
>- control over font name and style by hacking your FRX
>- print preview option
>- PDF option if using XFRX or other 3rd party report tools
>
>Malcolm

The files already exist. My form is for re-printing existing saved reports (pr, txt and PDF formats).
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform