Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Escape sequence with a dot matrix printer
Message
De
18/10/1999 16:01:38
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Escape sequence with a dot matrix printer
Divers
Thread ID:
00277848
Message ID:
00277848
Vues:
283
I would like to know how to be able to use escape sequence with VFP6 to print on a panasonic KX-P2023 (dot matrix printer). I tried to use rawprint.fll but I can not print in bold or print symbol such as " é, è, É ". Any idea?

SET LIBRARY TO rawprint5.fll ADDITIVE
SET PRINT TO test.txt
SET PRINT ON

?chr(27)+'G' && Bold
? "I need to see those symbols in normal and bold text format : é è à É È ç î ê "
?chr(27)+'H' && End Bold

?CHR(27)+'-'+'1'+"This text is supposed to be centered"+CHR(27)+'-'+'0' && Centered

SET PRINT OFF
lcPrinter = GetPrinter() && "Panasonic KX-P2023"
Success=RAWPRINT( lcPrinter, "test.txt")

SET PRINT TO



Also, how to make boxes from a prg file. In foxpro 2.6 dos, here's how the code looks :
@3,0 SAY CHR(201)
@3,1 SAY REPLICATE(CHR(205),kl)
@3,kl+1 SAY CHR(187)
@4,0 SAY CHR(186)
@4,1 SAY "Canada"
@4,kl+1 SAY CHR(186) ....

The result of chr(***) in windows is different that the result in dos. He's there a solution?

Thank you in advance.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform