Samsung SRP-370G Printer User Manual


 
SRP-370
Rev. 2.06
- 29 -
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 SRP-370 Windows
Driver.
For Each prnPrinter In Printers
If prnPrinter.DeviceName = “BIXOLON SRP-370” 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 = 9.5
Printer.FontName = “FontA1x1”
Printer.Print “FontA1x1Test”
Printer.EndDoc