Fix number of record per page.

Stimulsoft Reports.NET discussion
fkmfkm
Posts: 181
Joined: Thu Jul 05, 2007 11:26 pm
Location: Kuala Lumpur

Fix number of record per page.

Post by fkmfkm »

Hi,

How do i fix the number of record perpage ? lets say 10 records per page ?
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Fix number of record per page.

Post by Jan »

Hello,

Place container with required height on page. In container place your bands.

Thank you.
fkmfkm
Posts: 181
Joined: Thu Jul 05, 2007 11:26 pm
Location: Kuala Lumpur

Fix number of record per page.

Post by fkmfkm »

Jan,

Thanks for the reply

But what you mean container ? Panel you mean ?
twu027
Posts: 11
Joined: Tue Apr 21, 2009 8:55 pm
Location: new zealand

Fix number of record per page.

Post 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?


Brendan
Posts: 309
Joined: Sun Jul 16, 2006 12:42 pm
Location: Ireland

Fix number of record per page.

Post 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.
fkmfkm
Posts: 181
Joined: Thu Jul 05, 2007 11:26 pm
Location: Kuala Lumpur

Fix number of record per page.

Post 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.
twu027
Posts: 11
Joined: Tue Apr 21, 2009 8:55 pm
Location: new zealand

Fix number of record per page.

Post by twu027 »

if you just have 10 lines then you will have a empty page.
twu027
Posts: 11
Joined: Tue Apr 21, 2009 8:55 pm
Location: new zealand

Fix number of record per page.

Post by twu027 »

I really hope there is a work around for this.
None of them are perfect solutions for now.
fkmfkm
Posts: 181
Joined: Thu Jul 05, 2007 11:26 pm
Location: Kuala Lumpur

Fix number of record per page.

Post by fkmfkm »

Anyone can help ?
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Fix number of record per page.

Post by Jan »

Hello,

What wrong with Panel component? Its good variant.

Thank you.
Post Reply