Home > database >  Why use VFP set of POS printers print command, print out the font size cannot display set the font s
Why use VFP set of POS printers print command, print out the font size cannot display set the font s

Time:11-25

I use VFP to develop a "commodity selling software", which need to use POS printer sales tickets, sales set up a bold header row 15 words in the paper, and the rest of the print content are set to be 9 words, phrases that command as follows:

SET the DEVICE TO PRINTER
@ 1, 4 say "commercial product sales list" FONT "blackbody," 15
@ 3, 5 say "sales number:" + XQBH FONT "tahoma", 9
@ 5, 5 say sales date: "" + LEFT (TTOC (DATETIME ()), 14) the FONT" tahoma ", 9
@ 6, 5 say "buyers:" + GHZ FONT "tahoma", 9
I=8
SELECT merchandise sales table
SCAN
@ I, 2 SAY "brand name:" + ALLTRIM (brand name) the FONT "tahoma", 9
@ I + 1, 2 SAY "label:" + ALLTRIM (manufacturer) the FONT "tahoma", 9
@ I + 2, 2 SAY "batch number:" + ALLTRIM (lot number) of the FONT "tahoma", 9
@ I + 2, SAY ":" + ALLTRIM (STR) (quantity) + ALLTRIM (units) the FONT "tahoma", 9
@ I + 3, 2 SAY "price:" + ALLTRIM (STR (sales unit price, 8, 2))
@ I + 3, SAY "value:" + ALLTRIM (STR (sales price, 8, 2)) the FONT "tahoma", 9
I=I + 5
ENDSCAN
@ I, 4 SAY "total fee:" + ALLTRIM (STR (ZJJE, 8, 2)) + "yuan" the FONT "tahoma", 9
@ I + 1, 4 SAY "address:" + DDZ FONT "tahoma", 9
@ I + 2, 4 SAY "call:" + LXDH FONT "tahoma", 9
The SET PRINTER TO LPT1
????? CRH (27) + CRH (12)
????? CRH (12)

Actual print effect is found, print 1 bill, the header row can be displayed as "black" 15 words, but will print all of the bills later header lines are shown as "tahoma" only 9 words,
Respect to computer expert advice, what is the reason? How to set the print command words, just can make the POS printer to print the paper shows the font size set? Please guide, thank!
  •  Tags:  
  • VFP
  • Related