Page 2 of 2
Re: Sum a column in subreport and show in main report
Posted: Wed Nov 06, 2013 6:49 am
by prajan
Hi,
I created a website using the report that you sent. PFA.
The data for the report is the same 'Demo' that you use.
If you run the report, you can see that the 'SumSubReport' gets calculated to '72' while it should only be '36'.
Please let me know how this can be fixed.
Thanks
Re: Sum a column in subreport and show in main report
Posted: Wed Nov 06, 2013 8:35 am
by Alex K.
Hello,
We couldn't reproduce this bug.
Please check the last build.
Thank you.
Re: Sum a column in subreport and show in main report
Posted: Thu Nov 07, 2013 5:31 am
by prajan
Hi,
I tried it using the latest build, but still the sum is getting doubled.
PFA the project and the report that is generated.
Please let me know how this can be fixed.
Thanks
Re: Sum a column in subreport and show in main report
Posted: Mon Nov 11, 2013 7:35 am
by Alex K.
Hello,
Please try to add the following code before RegData() method:
Code: Select all
report.Dictionary.DataSources.Clear();
Thank you.
Re: Sum a column in subreport and show in main report
Posted: Mon Nov 11, 2013 7:55 am
by prajan
Hi,
I tried to add the given code before the RegData() method. I still get the sum as '72' only.
It is supposed to be '36'.
I have used the report that was sent by you long time back. Are you able to recreate this scenario ? Do I need to send any more details ?
Please let me know how this issue can be resolved.
Thanks.
Re: Sum a column in subreport and show in main report
Posted: Mon Nov 11, 2013 9:35 am
by Alex K.
Hello,
Please try to remove the following code:
report.IsRendered = false;
Thank you.
Re: Sum a column in subreport and show in main report
Posted: Mon Nov 11, 2013 10:31 am
by prajan
Hi,
Thanks a lot.
It did the trick.
Regards
Re: Sum a column in subreport and show in main report
Posted: Mon Nov 11, 2013 11:11 am
by Alex K.
Hello,
Let us know if you need any additional help.