Epson C31C213A8941 Print Driver Guide - Page 39

Printin W indows font, Printer.FontSize = 10, Printer.FontN am e = Tim es N ew Rom an, Printin

Page 39 highlights

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. 'Printin W indow s font Printer.FontSize = 10 Printer.FontN am e = "Tim es N ew R om an" Printer.PrintPrinter.FontN am e + ""+ Str(Printer.FontSize) 'Printin printer font Printer.FontSize = 10 Printer.FontN am e = "20 cpi" Printer.PrintPrinter.FontN am e + ""+ Str(Printer.FontSize) Printer.E ndD oc 6.2.4. Opening the Cash Drawer The next example shows how to open the desired cash drawer at the desired speed. Printer.FontSize = 10 Printer.FontName = "control" Printer.Print "A" Printer.EndDoc 'Set up the control font. '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 drawer 1 at 150 ms. 'D: Open drawer 1 at 200 ms. 'E: Open drawer 1 at 250,ms. 'a: Open drawer 2 at 50ms. 'b: Open drawer 2 at 100ms. 'c: Open drawer 2 at 150ms. 'd: Open drawer 2 at 200ms. 'e: Open drawer 2 at 250 ms. TITLE EPSON TM Printer Driver User's Manual SHEET REVISION 1.61 NO NEXT 40 SHEET 39

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45

TITLE
TM Printer Driver
SHEET
REVISION
NO
User's Manual
1.61
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.
'Printin W indows font
Printer.FontSize = 10
Printer.FontN am e = “Tim es N ew Rom an”
Printer.PrintPrinter.FontN am e + ""+ Str(Printer.FontSize)
'Printin printer font
Printer.FontSize = 10
Printer.FontN am e = “20 cpi”
Printer.PrintPrinter.FontN am e + ""+ Str(Printer.FontSize)
Printer.EndDoc
Printer.FontSize = 10
'Set up the control font.
Printer.FontName = "control"
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 drawer 1 at 150 ms.
'D: Open drawer 1 at 200 ms.
'E: Open drawer 1 at 250,ms.
'a: Open drawer 2 at 50ms.
'b: Open drawer 2 at 100ms.
'c: Open drawer 2 at 150ms.
'd: Open drawer 2 at 200ms.
'e: Open drawer 2 at 250 ms.
Printer.EndDoc