General information
Category:
Reports & Report designer
Title:
Escape sequence with a dot matrix printer
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.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only