VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "SPP-R200 Printer"
   ClientHeight    =   1335
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   2910
   LinkTopic       =   "Form1"
   ScaleHeight     =   1335
   ScaleWidth      =   2910
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton ReceiptBt 
      Caption         =   "Receipt Print"
      Height          =   855
      Left            =   240
      TabIndex        =   0
      Top             =   240
      Width           =   2415
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub Form_Load()
For Each prnPrinter In Printers
        If prnPrinter.DeviceName = "BIXOLON SPP-R200" Then
            Set Printer = prnPrinter
            Exit For
        End If
    Next

If Printer.DeviceName <> "BIXOLON SPP-R200" Then
    MsgBox "BBIXOLON SPP-R200 driver not installed", vbOKOnly
    End
End If
End Sub

Private Sub ReceiptBt_Click()

Printer.Font.Size = 8.5
Printer.FontName = "FontControl"
Printer.Print "x"
Printer.Font.Size = 17
Printer.FontName = "FontA2x2"
Printer.Font.Bold = True
Printer.Print "BIXOLON" + vbCrLf
Printer.Font.Bold = False

Printer.Font.Size = 8.5
Printer.FontName = "FontA1x1"
Printer.Print "Buy Online or call" + vbCrLf

Printer.Font.Size = 6
Printer.FontName = "FontB2x1"
Printer.Font.Bold = True
Printer.Print "1-800-915-3355"
Printer.Font.Bold = False

Printer.Font.Size = 8.5
Printer.FontName = "FontControl"
Printer.Print "w"

Printer.Font.Size = 8.5
Printer.FontName = "FontA1x1"
Printer.Print "--------------------------------"  'LF

Printer.Print "SRP-350                     $999"
Printer.Print "SRP-770                     $749"
Printer.Print "SRP-370                   $1,299"
Printer.Print "SRP-270                   $1,299"
Printer.Print "RIF-BT10                    $949"
Printer.Print "SMP600                      $349"
Printer.Print "SRP-500                     $249"
Printer.Print "--------------------------------"  'LF
Printer.Font.Bold = True
Printer.ForeColor = RGB(255, 0, 0)
Printer.Font.Size = 6
Printer.FontName = "FontB2x1"
Printer.Print "Total:         $5,893" + vbCrLf
Printer.Print "Visa :         $5,893" + vbCrLf
Printer.Font.Bold = True
Printer.Print "Change :           $0"
Printer.ForeColor = RGB(0, 0, 0)
Printer.Font.Bold = False
Printer.Font.Size = 8.5
Printer.FontName = "FontA1x1"
Printer.Print "--------------------------------"  'LF
Printer.Print ""
Printer.Print ""
Printer.Font.Size = 8.5
Printer.FontName = "FontControl"
Printer.Print "x"
Printer.Font.Size = 8.5
Printer.FontName = "FontControl"
Printer.Print "r"
Printer.Font.Size = 18
Printer.FontName = "Code128"
Printer.Print "{A{S12235884" '+ vbCrLf

Printer.Font.Size = 6
Printer.FontName = "FontB1x1"
Printer.Print "Date : 04/08/2003" + vbCrLf
Printer.Print "Time : 09:32" + vbCrLf
Printer.Print "No : 00018857302" + vbCrLf + vbCrLf
Printer.Print ""
Printer.Print ""
Printer.Font.Size = 8.5
Printer.FontName = "FontA1x1"
Printer.Print "Thank you~"

Dim pic As Picture

Set pic = LoadPicture(App.Path & "\Cafe.bmp")
Printer.CurrentX = 10
Printer.CurrentY = 6500
Printer.PaintPicture pic, Printer.CurrentX, Printer.CurrentY
Printer.CurrentY = Printer.CurrentY + pic.Height

'Printer.Font.Size = 9.5
'Printer.FontName = "FontControl"
'Printer.Print "["

Printer.EndDoc

End Sub
