SPP-R400
Rev. 1.03
- 36 -
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 codes contained in the CD.
7-1-1 Windows Driver Selection
The following code is an example of the selection of the “BIXOLON SPP-R400” Windows
Driver.
For Each prnPrinter In Printers
If prnPrinter.DeviceName = “BIXOLON SPP-R400” Then
Set Printer = prnPrinter
Exit For
End If
Next
7-1-2 Test Printing
The following code is an example of the printing of Arial Test via the Windows font, and
FontA1x1Test via the printer font.
‘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 “FontA1x1Test”
Printer.EndDoc