Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simplest way to print txt file?
Message
De
15/05/2006 16:59:33
 
 
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:
01122026
Vues:
16
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
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