TITLE
TM Printer Driver
SHEET
REVISION
NO
User's Manual
1.60
NEXT
40
SHEET
39
EPSON
6.2.3. Printing Text
The following code prints a text string using a Windows font, and then prints another text string using a printer font. Each
string gives the name and size of the font being used.
6.2.4. Opening the Cash Drawer
The next example shows how to open the desired cash drawer at the desired speed.
'Print in Windows font
Printer.FontSize = 10
Printer.FontName = “Times New Roman”
Printer.Print Printer.Fo " " + Str(Printer.FontSize)
'Print in printer font
Printer.FontSize = 10
Printer.FontName = “20 cpi”
Printer.Print Printer.Fo " " + Str(Printer.FontSize)
Printer.EndDoc
Printer.FontSize = 10
'Set up the control font.
Printer.FontNam e = "con trol"
Printer.Print "A"
'Use special-function character to open the
cash drawer.
'A: Open drawer 1 at 50 ms.
'B: Open drawer 1 at 100 ms.
'C : Open draw er 1 at 150 ms.
'D: Open drawer 1 at 200 ms.
'E: Open draw er 1 at 250,ms.
'a: Open drawer 2 at 50ms.
'b: O pen drawer 2 at 100ms.
'c: O pen drawer 2 at 150ms.
'd: O pen drawer 2 at 200ms.
'e: O pen drawer 2 at 250 ms.
Printer.EndDoc