Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Calculations among Subreports Post Reply Post New Topic
Author Message
gazala
Newbie
Newbie


Joined: 16 May 2007
Location: United States
Online Status: Offline
Posts: 13
Quote gazala Replybullet Topic: Calculations among Subreports
    Posted: 20 Jun 2007 at 6:17am

I have  three subreports in detail section of main report.The first two subreports have detail records.In third subreport i want to diplay result of sum of values on two of the subreports record wise as below :

SUBREPORT 1           SUBREPORT2            SUBREPORT3

 

55                                65                                120

100                              35                               

61                                45         

Problem is only  result for first record on subreports is being displayed whereas i want for all.I am doing all this by using shared variables on subreports.I 've also used whileprintingrecords statement before defining shared variables.Is there any way to solve this problem.

IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 20 Jun 2007 at 9:45am
So the third subreport doesn't have any detail records? In that case it will only print once. What about printing the total on the main report instead of a subreport. Since the subreport has no detail records, is there a reason for using it? Shared variables can be seen by the main report as well and be printed.
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
IP IP Logged
gazala
Newbie
Newbie


Joined: 16 May 2007
Location: United States
Online Status: Offline
Posts: 13
Quote gazala Replybullet Posted: 20 Jun 2007 at 12:12pm
i have no limitation with displaying results on main,i tried this before but got the same result as now,thats why i tried with 3rd subreport
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 20 Jun 2007 at 1:52pm
Something else is going wrong then, because a subreport wouldn't help if it wasn't working in the main report anyway. Did you put the subreports in their own section and place them BEFORE the formula which displays their result? This is critical for making sure that the subreport gets called prior to the formula on the main report being displayed.
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.027 seconds.