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 »

Edward wrote:Hi

Engine.NewPage() starts a new page, so after calling of that command next element of the report will be rendering on the new page.

Thank you.
Yes this newPage will move everything to a new page..

But I need the DataBand2 and Databand3 to still be on the first page, even thou Databand1 got more than 5 records. Its a fixed form where each band can hold only 5 records.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Fix number of record per page.

Post by Edward »

Hi

Please show a screenshot of the result you need to achieve.

Will your databands be connected with each other or not?

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 »

Edward wrote:Hi

Please show a screenshot of the result you need to achieve.

Will your databands be connected with each other or not?

Thank you.
It is not connected....I have answered Jan on this...

Where can I attach the screen shot ? email ?
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Fix number of record per page.

Post by Edward »

Hi,

Please send these screenshots to support[at]stimulsoft.com

Thank you.
leonardo-cadete
Posts: 4
Joined: Fri Nov 20, 2015 5:42 pm

Re: Fix number of record per page.

Post by leonardo-cadete »

I would like to know if this problem was solved
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Fix number of record per page.

Post by HighAley »

Hello, Leonardo.

We didn't get enough information about the issue to solve it.
Could you specify what problem you have?

Thank you.
leonardo-cadete
Posts: 4
Joined: Fri Nov 20, 2015 5:42 pm

Re: Fix number of record per page.

Post by leonardo-cadete »

I have

DataBand1 (max 5 records)
HeaderBand2
DataBand2 (max 5 records)
HeaderBand3
DataBand3 (max 5 records)

I would like to limit the number of records for each databand to 5 for each page. If its more than 5 then then it will move to the next page and so on. I want all the bands to be on every page.
Using engine.newPage () of all subsequent databand will move to the next page and I need that the only databand which has more than 5 records go to the next page.

Thank you.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Fix number of record per page.

Post by HighAley »

Hello, Leonardo.

Please, try to use next code in the AfterPrint event of the DataBand:

Code: Select all

if (Line%5==0) Engine.NewPage();
Thank you.
leonardo-cadete
Posts: 4
Joined: Fri Nov 20, 2015 5:42 pm

Re: Fix number of record per page.

Post by leonardo-cadete »

Hello,

I’ve tried using this command but all databand below go to the next page. I need only the specified databand go to next page.

Thank you.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Fix number of record per page.

Post by HighAley »

Hello, Leonardo.

Then we need more detailed description of your issue.
Could you send us your report template with result that you get and what you want to get?
Probably we will need sample data for your report template to reproduce your issue. Please, send it too.

Thank you.
Post Reply