This is a migrated thread and some comments may be shown as answers.

Subreport spanning mulitple pages with page total on each page

1 Answer 131 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 11 Aug 2011, 04:52 AM
Hi,

I have a report containing a subreport with figures that I want to subtotal on each page (for only the figure displayed on each individual page) and then I want a grand total for the subreport figures on the last page (all figures across all pages).

Currently I have the grand total working but unfotunately I cant find a way to do a subtotal per page. I basically need something like how the PageExec() works to allow me to sum up the data on that page, but obviously subreports dont have a page footer so this doesn't work. I have tried the Exec() but I can't set the scope to only the data on the page. Maybe if there was a way for passing the Exec() a scope with just the data on display on the page this would work but I guess the PageExec() was built to do this but without subreports in mind.

Please can anyone help me with this problem?

Thanking you in advance

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 12 Aug 2011, 01:09 PM
Hi Chris,

The PageExec(itemName, aggregateFunction) can accept subreport's report item as itemName. Thus you can add a PageExec function to the master report's page header that references subreport's report item. For an example check out the Invoice demo report that came with your installation of Telerik Reporting.

Regards,
Peter
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Tags
General Discussions
Asked by
Chris
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or