SRP-382
Rev. 1.00
7. Use of Windows Driver
7-1 Use of Visual Basic
This section contains example codes to control the printer using Windows driver with
Visual Basic. Sample programs are included in the CD.
7-1-1 Windows Driver Selection
The following example code explains how to select “BIXOLON SRP-382” Windows driver.
For Each prnPrinter In Printers
If prnPrinter.DeviceName = “BIXOLON SRP-382” Then
Set Printer = prnPrinter
Exit For
End If
Next
7-1-2 Text Printing
The following example code explains how to print texts using Windows Fonts and Device
Fonts.
„Print in Windows font
Printer.FontSize = 9
Printer.FontName = “Arial”
Printer.Print “Arial Test”
„Print in printer font
Printer.FontSize = 8.5
Printer.FontName = “FontA1x1”
Printer.Print “FontA1x1 Font”
Printer.EndDoc