VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Cutting Test"
   ClientHeight    =   1440
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   2280
   LinkTopic       =   "Form1"
   ScaleHeight     =   1440
   ScaleWidth      =   2280
   StartUpPosition =   3  'Windows Default
   Begin VB.TextBox Text1 
      Alignment       =   2  'Center
      Height          =   375
      Left            =   1440
      TabIndex        =   2
      Text            =   "0"
      Top             =   840
      Width           =   735
   End
   Begin VB.CommandButton Command1 
      Caption         =   "Print"
      Height          =   615
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   2055
   End
   Begin VB.Label Label1 
      Alignment       =   2  'Center
      Caption         =   """g"" count"
      Height          =   255
      Left            =   120
      TabIndex        =   1
      Top             =   960
      Width           =   1095
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
 For Each prnPrinter In Printers
        If prnPrinter.DeviceName = "BIXOLON SRP-350plus" Then
            Set Printer = prnPrinter
            Exit For
        End If
    Next

Dim x As Byte
Dim Counter As Byte
Counter = 0

Printer.Font.Size = 9.5
Printer.FontName = "FontA1x1"
Printer.Print "Cutting Test"

Printer.Font.Size = 9.5
Printer.FontName = "FontControl"
x = Text1.Text
Counter = x

If Counter > 0 Then
    For i = 1 To Counter
        Printer.Print "6";
    Next
End If

Printer.Print "g"
Printer.EndDoc

End Sub

