Toggle navigation
ReportBuilder Support Forums
Categories
Discussions
Activity
Sign In
Home
›
General
ReportBuilder 22.06 now available including Delphi 12.2 support!
New Blog Posts: Merging Reports -
Part 1
and
Part 2
Printing ticket with RB
rbuser
March 2002
edited March 2002
in
General
Hi,
I am using RB ent 6.x
I need to print a ticket with RB, so there is only one page with no height
limit.
There is no page break, only one sumary, many detail.
How can I do that ?
Thanks
--
Serge Chelli
www.aceinformatique.com
Comments
rbuser
March 2002
edited March 2002
Simply set page height manually before printing it.
Here's an example:
var i, alto : integer;
alto := 0;
for i := 0 to ppreport1.Bandcount - 1 do
alto := alto + (ppreport1.bands[i].mmHeight div 1000);
ppreport1.printersetup.PaperWidth := 76; //it depends on ticket
width
ppreport1.printersetup.PaperHeight:=alto + (ppreport1.DetailBand.Height
* table1.recordcount);
You have to multiply table.recordcount * detailband.height to know the total
height for detail.
Then you have to SUM the height of the other bands
"Serge Chelli" escribi? en el mensaje
This discussion has been closed.
Comments
Here's an example:
var i, alto : integer;
alto := 0;
for i := 0 to ppreport1.Bandcount - 1 do
alto := alto + (ppreport1.bands[i].mmHeight div 1000);
ppreport1.printersetup.PaperWidth := 76; //it depends on ticket
width
ppreport1.printersetup.PaperHeight:=alto + (ppreport1.DetailBand.Height
* table1.recordcount);
You have to multiply table.recordcount * detailband.height to know the total
height for detail.
Then you have to SUM the height of the other bands
"Serge Chelli" escribi? en el mensaje