Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simplest way to print txt file?
Message
De
16/05/2006 08:47:30
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01122014
Message ID:
01122168
Vues:
24
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform