Want to display record in group of 5

Stimulsoft Reports.NET discussion
Post Reply
Pankaj
Posts: 3
Joined: Fri Apr 07, 2017 9:36 am

Want to display record in group of 5

Post by Pankaj »

Hi team,

I created a report in which i show detail in a group of 5 on report page.
Case 1:- Suppose i have detail of 100 company and i want to display only 40 company detail list and average on report page.But i want if there any space exist on first page then average will also show on first page else if space does not exist then it will display on next page.

Case 2:- Suppose i have detail of 100 company and i want to display only 41 or 42 or 43 company detail list and average on report page.But i want it in a group of 5. Means first page of report show only 40 records and 41st record and average should display on second page.
if i want to display 42 record then first page only show 40 record and next page should show the remaining record.

I have already attached xml,xsd and mrt file. Please help.
Capture.PNG
Capture.PNG (30.94 KiB) Viewed 1456 times
In this screen shot , if there is 41 or 42.. record then i want it to display on second page. But if there is only 40 record then i want average to display at place of 41 if there exist any space.

Thanks
Pankaj
Attachments
Forum issue.zip
(13.49 KiB) Downloaded 159 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Want to display record in group of 5

Post by Alex K. »

Hello,

As a way, in this case, you can check the number of lines and use Engine.NewPage() method in the AfterPrint of the necessary band.
Something like following:

Code: Select all

if (Line == 40)
	Engine.NewPage();
Thank you.
Post Reply