VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "BIXOLON"
   ClientHeight    =   1335
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   2910
   LinkTopic       =   "Form1"
   ScaleHeight     =   1335
   ScaleWidth      =   2910
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton ReceiptBt 
      Caption         =   "Prints Receipt"
      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 ReceiptBt_Click()
For Each prnPrinter In Printers
        If prnPrinter.DeviceName = "Metapace T-3II" Then
            Set Printer = prnPrinter
            Exit For
        End If
    Next
 
Printer.Font.Size = 9
Printer.FontName = "FontControl"
Printer.Print "x"                       'Aligns text to the center

Printer.Font.Size = 19
Printer.FontName = "FontA2x1"
Printer.Print "Metapace"

Printer.Font.Size = 9
Printer.FontName = "FontControl"

Printer.Font.Size = 9.5
Printer.FontName = "FontA2x1"
Printer.Print "BIXOLON's MALL"

Printer.Font.Size = 9.5
Printer.FontName = "FontA1x1"
Printer.Print "Buy Online or call"
Printer.Print ""

Printer.Font.Size = 9.5
Printer.FontName = "FontB2x1"
Printer.Print "1-800-915-3355"

Printer.Font.Size = 9
Printer.FontName = "FontControl"
Printer.Print "w"                       'Aligns text to the left

            
Printer.Font.Size = 9.5
Printer.FontName = "FontA1x1"


Printer.Print "------------------------------------------"
Printer.Print "Metapace T-3II Printer                $999"
Printer.Print "------------------------------------------"
Printer.Print "Total purchase :                      $999"
Printer.Print "Visa :                                $999"
Printer.Print "------------------------------------------"
            

Printer.Print "Date : 04/08/2003     Time : 09:32"
Printer.Print "No : 00018857302"
Printer.Print ""
Printer.Print ""
Printer.Print "FREE 2nd Bay Interface "
Printer.Print "With Purchase of ANY Dimension Desktop"
Printer.Print "Ends Today !"
            
Printer.Font.Size = 9
Printer.FontName = "FontControl"
Printer.Print "x"                       'Aligns text to the center

Printer.Font.Size = 20
Printer.FontName = "Barcode1"
Printer.Print "123456789012" '+ vbCrLf

'Printer.Font.Size = 9
'Printer.FontName = "FontControl"
'Printer.Print "P"                       'Cut Receipt (partial cut)

Set pic = LoadPicture(App.Path & "\free5_100.bmp")

Printer.CurrentX = 60
Printer.CurrentY = 5000
Printer.PaintPicture pic, Printer.CurrentX, Printer.CurrentY
Printer.CurrentY = Printer.CurrentY + pic.Height


Printer.EndDoc
End Sub
