Printer not define RRS feed

  • Question

  • This is receipt printer as pos  when opening the form this error showing Type printer is not define?

    Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    Dim P As New PrinterClass(Application.StartupPath)
    With P
    'Printing Logo
    .RTL = False

    'Printing Title
    .Bold = True
    .WriteLine("Receipt #")

    'Printing Date

    'Printing Header
    End with
    End Sub

    Friday, January 10, 2020 10:54 AM


  • You need the vb power packs to get access to the printer class

    • Marked as answer by CompuTechSide Saturday, January 11, 2020 2:55 PM
    Friday, January 10, 2020 11:07 AM