®
Programmer' s Guide
POSjet
1500
Codes and Commands
When the device is no longer needed it is "Disabled", "Released" and "Closed". This is typically done when
the application is being shutdown. (Form Unload in VB).
Printer1.DeviceEnabled = False
Printer1.Release
Printer1.Close
Setting Fonts, Justification (left, right, center), Bold, Double wide/high, ... (from vbtest)
' Font Typeface #1
data = Chr(27) + "|1fT" + "Font Typeface #1" + Chr(10)
CallResult = Printer1.PrintNormal(PTR_S_RECEIPT, data)
' Font Typeface #2
data = Chr(27) + "|2fT" + "Font Typeface #2" + Chr(10)
CallResult = Printer1.PrintNormal(PTR_S_RECEIPT, data)
' Font Typeface #3
data = Chr(27) + "|3fT" + "Font Typeface #3" + Chr(10)
CallResult = Printer1.PrintNormal(PTR_S_RECEIPT, data)
' Font Typeface #0
data = Chr(27) + "|0fT" + "Font Typeface #0 (default)" + Chr(10)
CallResult = Printer1.PrintNormal(PTR_S_RECEIPT, data)
' Bold
data = "This is " + Chr(27) + "|bC" + "Bold" + Chr(10)
CallResult = Printer1.PrintNormal(PTR_S_RECEIPT, data)
' Underline
data = "This is " + Chr(27) + "|uC" + "Underline" + Chr(10)
CallResult = Printer1.PrintNormal(PTR_S_RECEIPT, data)
' Italic
data = "This is " + Chr(27) + "|iC" + "Italic" + Chr(10)
CallResult = Printer1.PrintNormal(PTR_S_RECEIPT, data)
' 2xWide
data = "This is " + Chr(27) + "|2C" + "2xWide" + Chr(10)
CallResult = Printer1.PrintNormal(PTR_S_RECEIPT, data)
' 2xHigh
data = "This is " + Chr(27) + "|3C" + "2xHigh" + Chr(10)
CallResult = Printer1.PrintNormal(PTR_S_RECEIPT, data)
' 2xWide 2xHigh
data = "This is " + Chr(27) + "|4C" + "2xWH" + Chr(10)
CallResult = Printer1.PrintNormal(PTR_S_RECEIPT, data)
' 2x Normal
data = "This is " + Chr(27) + "|4C" + "2x" + Chr(27) + "|1C" + " to Normal" + Chr(10) + Chr(10)
Nov-07
Rev M
Page 79