Epson C31C213A8941 Print Driver Guide - Page 40

Cutting the Paper, 2.6. Printing a Bar Code

Page 40 highlights

6.2.5. Cutting the Paper The following code causes the printer to cut the paper. Printer.FontSize = 10 Printer.FontName = "control" Printer.Print "F" Printer.EndDoc 'Set up the control font. 'Use special-function character to cut the paper. 'F: Full cut 'P: Partial cut 6.2.6. Printing a Bar Code The next example shows how to print out a bar code. 'SetH R Icharacters Printer.FontSize = 10 'Setup the controlfont. Printer.FontN am e = "control" P rinter.P rint "q" 'U se special-function character to selectthe bar-code type. 'p:N o H R Icharacters 'q:Include H R Icharacters above bar code (using fontA ). 'r:Include H R Icharacters below bar code (using fontA ). 's:Include H R Icharacters above bar code (using fontB ). 't:Include H R Icharacters below bar code (using fontB ). 'Printthe bar code. Printer.FontSize = 42 'Setthe bar-code fontsize. Printer.FontN am e = "ITF" 'Selectthe bar-code printer font. P rinter.P rint "123456" 'Printthe bar-code data. Printer.E ndD oc TITLE EPSON TM Printer Driver User's Manual SHEET REVISION 1.61 NO NEXT 41 SHEET 40

  • 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
41
SHEET
40
EPSON
6.2.5. Cutting the Paper
The following code causes the printer to cut the paper.
6.2.6. Printing a Bar Code
The next example shows how to print out a bar code.
‘SetH RIcharacters
Printer.FontSize = 10
'Setup the controlfont.
Printer.FontN am e = "control"
Printer.Print"q"
'U se special-function character to selectthe
bar-code type.
'p:N o H RIcharacters
'q:Include H RIcharacters above bar code
(using fontA).
'r:Include H RIcharacters below bar code
(using fontA).
's:Include H RIcharacters above bar code
(using fontB).
't:Include H RIcharacters below bar code
(using fontB).
'Printthe bar code.
Printer.FontSize = 42
'Setthe bar-code fontsize.
Printer.FontN am e = "ITF"
'Selectthe bar-code printer font.
Printer.Print"123456"
'Printthe bar-code data.
Printer.EndDoc
Printer.FontSize = 10
'Set up the control font.
Printer.FontName = "control"
Printer.Print "F"
'Use special-function character to cut the
paper.
'F: Full cut
'P: Partial cut
Printer.EndDoc