CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2008
    Posts
    19

    Printing invoice in contiinous paper using USB Dot matrix printer

    I wish to print Invoice in Continuous statonery (Roll Paper ) width of paper 4 inches


    My problem , after printing one bill printer skips and giving lot of space between two bills. (Paper ejected after printing Bill ). My Requirement is printer must stop printing after completing Invoice. ( no gaps required ) and user tear off that bill and continue to print next Invoice.

    I am Using TVS RP 45 shoppe (USB DOT Matrix Printer).
    NOTE: I am not interested in Text file Printing (Print #1 ) method. In this I cannot use different Fonts and font size. I wish to print shop name and address printed in Big font.
    Please help me
    MY Code is here
    Code:
    Printer.Font = "Arial"
    Printer.FontBold = True
    Printer.FontSize = 12
    Printer.CurrentX = 3400
    Printer.CurrentY = 50
    Printer.Print " XXXXXXXXXXXXXXXX "
    Printer.Font = "Arial"
    Printer.FontBold = False
    Printer.FontSize = 10
    Printer.CurrentX = 3400
    Printer.CurrentY = 350
    Printer.Print "  XXXXXXXXXXXXXXXXXXXXX  "
    Printer.CurrentX = cx - TextWidth(custdue)
    printer.CurrentY = cy + 300
    Printer.FontSize = 10
    Printer.Print Format(custdue, "00.00")
    cy = cy + 600
    Printer.Line (6000, cy)-(7800, cy)   '-h line
    Printer.EndDoc
    Last edited by 2kaud; June 12th, 2017 at 03:29 AM. Reason: Added code tags

  2. #2
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,362

    Re: Printing invoice in contiinous paper using USB Dot matrix printer

    Check your printer settings.
    Always use [code][/code] tags when posting code.

  3. #3
    Join Date
    Jan 2008
    Posts
    19

    Re: Printing invoice in contiinous paper using USB Dot matrix printer

    Quote Originally Posted by DataMiser View Post
    Check your printer settings.
    In this type printer Only Roll Paper with 4 inch only to printed. No more paper settings

  4. #4
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,362

    Re: Printing invoice in contiinous paper using USB Dot matrix printer

    There are usually settings for how much paper to feed for tear off
    Always use [code][/code] tags when posting code.

  5. #5
    Join Date
    Nov 2016
    Posts
    14

    Re: Printing invoice in contiinous paper using USB Dot matrix printer

    Sometimes you can trick the Printer by setting a form length of ZERO (or 1) -
    Then when you have finished printing your Sale Docket, perform as many "print" statements so that the paper skips up to the tear-off point

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured