none
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
    .PrintLogo()

    'Printing Title
    .FeedPaper(4)
    .AlignCenter()
    .BigFont()
    .Bold = True
    .WriteLine("Receipt #")

    'Printing Date
    .GotoSixth(1)
    .NormalFont()
    .WriteChars("Date:")
    .WriteLine(DateTime.Now.ToString)
    .DrawLine()
    .FeedPaper(2)

    'Printing Header
    .GotoSixth(1)
    .WriteChars("#")
    .GotoSixth(2)
    .WriteChars("Description")
    .GotoSixth(5)
    .WriteChars("Count")
    .GotoSixth(6)
    .WriteChars("Total")
    End with
    End Sub

    Friday, January 10, 2020 10:54 AM

Answers

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

    http://go.microsoft.com/fwlink/?linkid=321343

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