Specifications

CITIZEN SYSTEMS Windows Driver Guide
- -
25
12. Example of program by Visual Basic
Following program list is for “CITIZEN CT-S2000”.
‘Set “CITIZEN CT-S2000“ as default printer driver
Dim X As Printer
For Each X In Printers
If X.DeviceName = “CTIZEN CT-S2000” Then
Set Printer = X
Exit For
End If
Next
‘Printing Windows font”
Printer.FontSize=10
Printer.FontName=”Ariel”
Printer.Print “Font Ariel / Size 10”
‘Printing Printer font
Printer.FontSize=12
Printer.FontName=”15 cpi”
Printer.Print “15 cpi / Size 12”
‘Printing Barcode
Printer.FontSize=20
Printer.FontName=”Code39”
Printer.Print “ABC123456”
‘Opening cash drawer
Printer.FontSize=12
Printer.FontName=”Control”
Printer.Print “A ‘Drawer 1 at 50ms
‘Cutting paper”
Printer.FontSize=12
Printer.FontName=”Control”
Printer.print “P” ‘Partial cut
‘Printing graphic data from NV memory
Printer.FontSize=12
Printer.FontName=”Control”
Printer.print “G” ‘Print #1 graphic data in NV memory
Printer.EndDoc
Also you can send commands through driver but it is necessary to choose printer font first.
(Please use this way at your own risk. We do not recommend this usage.)
Printer.FontSize=12
Printer.FontName=”15 cpi”
Printer.Print CHR$(&H1B) + “V” + CHR$(1) ‘90 degrees right turned.
Printer.Print “15 cpi / Size 12”
Printer.EndDoc
Caution: PrintDocument object of Visual Basic.Net etc does not support printer font. Therefore the above method
using printer font cannot be used.