Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

how to print to POS printers

edited August 2001 in General
I have developed a POS application and I have to print tickets in a Point Of
Sale printer.
I don't know how to configure the report. If the ticket has 3 lines, it
prints 3 lines and a lot of empty paper.
Sorry, but I don't have the printer at home, so I have to ask this question
in the news.

What about setting the page-height lower than minimum? Or larger than the
lines will fill?

Emm... forgive my english, I surely made some mistakes.

Comments

  • edited August 2001
    You are going to want to set the page size dynamically. If you know how
    many records you have and the detail band height, you can multiply these to
    get the total page height. If you don't know how many records you will
    print, then you'll need to set the Report.PassSetting to twopass. In the
    first pass, calculate access the Report.Engine.PrintPosRect.Bottom property
    to see how far down on the page the detail bands have generated in
    thousandths of millimeters. You can convert to and from thousandths of
    millimeters with calls in ppUtils.pas ppToMMThousandths and
    ppFromMMThousandths. It will be something like

    ppFromMMThousandths(25400, utInches, pprtHorizontal, Report.Printer);


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.