Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simplest way to print txt file?
Message
From
16/05/2006 08:47:30
 
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:
01122168
Views:
14
Naomi,

For the purpose of printing text files, I think using a very simple custom report that prints from a temp cursor will give you the most flexibility of all - especially regarding control over landscape and portrait and printer font.

I know your text files already exist, just load the text file you want printed into a one memo field cursor and report from this cursor.

Malcolm


>>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).
Malcolm Greene
Brooks-Durham
mgreene@bdurham.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform