how to print to POS printers
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.
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.
This discussion has been closed.
Comments
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
http://www.digital-metaphors.com
info@digital-metaphors.com