Page 1 of 5
Fix number of record per page.
Posted: Tue May 19, 2009 10:27 am
by fkmfkm
Hi,
How do i fix the number of record perpage ? lets say 10 records per page ?
Fix number of record per page.
Posted: Wed May 20, 2009 8:25 am
by Jan
Hello,
Place container with required height on page. In container place your bands.
Thank you.
Fix number of record per page.
Posted: Wed May 20, 2009 10:41 am
by fkmfkm
Jan,
Thanks for the reply
But what you mean container ? Panel you mean ?
Fix number of record per page.
Posted: Wed May 20, 2009 10:07 pm
by twu027
Container means component like Panel.
But what if I had some data row which the height is undeterministic?
What if the property of the band is Can shrink? or Can grow?
Fix number of record per page.
Posted: Thu May 21, 2009 2:36 am
by Brendan
You could put the following into the BeforePrintEvent of your DataBand (where DataBand1 is the name of your DataBand)
Code: Select all
DataBand1.NewPageAfter = (Line % 10 == 0);
I haven't used this so I don't know if it will work in all cases.
Fix number of record per page.
Posted: Fri May 22, 2009 8:34 pm
by fkmfkm
Thanks for all the reply.
It wont work...
You see, my page got these in sequence.. DataBand1, HeaderBand2, DataBand2.
In each of the databand i need to limit the number of records. I cannot put it in a panel, cause the subsequent Band wont follow in the flow...Or do I put all the bands in the panel ?
I cannot use this code
DataBand1.NewPageAfter = (Line % 10 == 0); cause all my subsequent band will move to the next page.
Fix number of record per page.
Posted: Sun May 24, 2009 11:16 pm
by twu027
if you just have 10 lines then you will have a empty page.
Fix number of record per page.
Posted: Sun May 24, 2009 11:17 pm
by twu027
I really hope there is a work around for this.
None of them are perfect solutions for now.
Fix number of record per page.
Posted: Tue May 26, 2009 9:49 am
by fkmfkm
Anyone can help ?
Fix number of record per page.
Posted: Wed May 27, 2009 12:04 am
by Jan
Hello,
What wrong with Panel component? Its good variant.
Thank you.