Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I print a text file to printer without FILETOSTR
Message
 
 
À
23/08/2005 02:49:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01042627
Message ID:
01042905
Vues:
27
Andrei,

You can find the printer control codes in the printer manual or online at http://www.epson.com/.

It looks like this printer uses the HP PCL rather than the Epson printer language.
??? chr(27) + "E" && reset the printer
??? chr(27) + "(s0P" && set to fixed space
??? chr(27) + "(s0T" && set to line printer font
??? chr(27) + "(s16.6H" && 16.66 cpi
you can string together like ESC sequences by lowercasing the all but the last command character:
??? chr(27) + "(s0p0t16.6H" && set to fixed space, line printer font, 16.66 cpi
so send these commands to the printer prior to sending your text file to it.

>Thank you. It works, but i don't know how to send the condesed code to the printer.
>I have Epson EPL 6200L Advenced printer, and text line is more than 80 char. width.
>I don't want to use SET PRINTER FONT TO 'Courier New',7 because the font height is smaller.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform