Epson TM U295 User Manual - Page 40

Printer.FontSize = 10, Printer.FontName = control, Printer.Print F, Printer.EndDoc

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. 'Set HRI characters Printer.FontSize = 10 'Set up the control font. Printer.FontName = "control" Printer.Print "q" 'Use special-function character to select the bar-code type. 'p: No HRI characters 'q: Include HRI characters above bar code (using font A). 'r: Include HRI characters below bar code (using font A). 's: Include HRI characters above bar code (using font B). 't: Include HRI characters below bar code (using font B). 'Print the bar code. Printer.FontSize = 42 'Set the bar-code font size. Printer.FontName = "ITF" 'Select the bar-code printer font. Printer.Print "123456" 'Print the bar-code data. Printer.EndDoc TITLE EPSON TM Printer Driver User's Manual SHEET REVISION 1.60 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.60
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.
‘Set HRI characters
Printer.FontSize = 10
'Set up the control font.
Printer.FontName = "control"
Printer.Print "q"
'Use special-function character to select the
bar-code type.
'p: No HRI characters
'q: Include HRI characters above bar code
(using font A).
'r: Include HRI characters below bar code
(using font A).
's: Include HRI characters above bar code
(using font B).
't: Include HRI characters below bar code
(using font B).
'Print the bar code.
Printer.FontSize = 42
'Set the bar-code font size.
Printer.FontName = "ITF"
'Select the bar-code printer font.
Printer.Print "123456"
'Print the 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