Total per page

Stimulsoft Reports.NET discussion
Post Reply
muriloruiz
Posts: 30
Joined: Tue Dec 01, 2015 6:19 pm

Total per page

Post by muriloruiz »

Hello,

I need to show a total per page in my report, the value is calculated through the event before the printout of the detail band and printed in the page footer. In the text field of my footer page I use the function: Processes in = End of the page, the problem is that the report is showing on the first page the value of the first record of the second page, and I need the total only the first page. Can you help me?

Thank you.
Attachments
TesteRodape.mrt
(6.99 KiB) Downloaded 405 times
PageFooter.png
PageFooter.png (34.53 KiB) Viewed 2362 times
Report.png
Report.png (13.96 KiB) Viewed 2362 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Total per page

Post by Alex K. »

Hello,

The PageFooter render in start on the page rendering.
In this case, you can try to set the ProcessAt property to the EndOfPage value for the text component.

Thank you.
muriloruiz
Posts: 30
Joined: Tue Dec 01, 2015 6:19 pm

Re: Total per page

Post by muriloruiz »

Hello,

According to the above example, my text component already has the function Process in: End of page checked, but it always shows on the first page the first value of the second page.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Total per page

Post by HighAley »

Hello.

Please, move your code form the Before Print event to the After Print.
The Before Print event fires at the beginning of the rendering of the band. But during the rendering report engine understands that there is no enough space for this band.

Thank you.
Post Reply