Sum of Page + previous pages

Stimulsoft Reports.WPF discussion
Post Reply
Van_M
Posts: 5
Joined: Mon Nov 01, 2010 4:39 am

Sum of Page + previous pages

Post by Van_M »

Hello
I am currently evalueating StimulSoft WPF for the company I work for.
I wonder, can I get sum of previous pages at the page header and sum of the previous pages plus sum of the current page at the page footer?
Thank you for your time.


--EDIT: Perhaps i have to phrase my question in a better way.
In my report I want to have the following:
1) A group header that is shown in every page except the first one. It shows the total sum of all the previous pages for a data column.
2) A Databand containing data for the column.
3) A group footer that is shown on each page except the last one. It shows the total sum for the column + total sum of all the previous pages for the column.

Is the above feasible?The difficulty I am facing is when it comes to getting the sum for the previous pages while I handle the data of the current page.

Pardon me for my poor English.
Thank you for your help.
Van_M
Posts: 5
Joined: Mon Nov 01, 2010 4:39 am

Sum of Page + previous pages

Post by Van_M »

......anyone?
Please?
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Sum of Page + previous pages

Post by Jan »

Hello,

Please check following topic:

http://forum.stimulsoft.com/Default.aspx?g=posts&t=3757

Thank you.
Van_M
Posts: 5
Joined: Mon Nov 01, 2010 4:39 am

Sum of Page + previous pages

Post by Van_M »

Thanks for your reply
The example report that you provided gives me an exception so I can't run it, but from what I see in the designer, there are page totals and report totals.
This is not what I am looking for.

I need total for the previous pages of my report on my report header. Is there any way I can get that?
Any kind of expression that provides for such a thing?
Is there any expression that gives me the current page's first row number so I can calculate total of rows that have smaller rownumber than the page's first one? (I do have a distinct field in my datasource).
Many thanks
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Sum of Page + previous pages

Post by Alex K. »

Hello,

Please see the sample report in attachment.
Let us know if you need any additional help.

Thank you.
Attachments
670.SampleReport.mrt
(23.69 KiB) Downloaded 1073 times
Van_M
Posts: 5
Joined: Mon Nov 01, 2010 4:39 am

Sum of Page + previous pages

Post by Van_M »

This worked perfectly!
Thank you very much for your help.
Kind Regards
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Sum of Page + previous pages

Post by Alex K. »

Hello,

We always glad to help you.
Let us know if you need any additional help.

Thank you.
poonemim
Posts: 1
Joined: Tue Nov 06, 2018 7:27 am

Re: Sum of Page + previous pages

Post by poonemim »

cant find demo.xsd file would u plz put it for download
Andrew
Posts: 4104
Joined: Fri Jun 09, 2006 3:58 am

Re: Sum of Page + previous pages

Post by Andrew »

Hello,

You need to install the product (download page https://www.stimulsoft.com/en/downloads) and then find the demo.xsd by the following path c:\Users\YourUserName\AppData\Local\Stimulsoft\Demo-Reports-201*.*.*\.stimulsoft\data\

Thank you.
Post Reply