Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Subrports Post Reply Post New Topic
Author Message
Savan
Senior Member
Senior Member
Avatar

Joined: 14 Dec 2007
Location: India
Online Status: Offline
Posts: 162
Quote Savan Replybullet Topic: Subrports
    Posted: 24 Jan 2008 at 4:55am
Hi
i am having sub report called from main report. i m having a formula @total in the subreport which i would like to use to do some calculations in the main report.
 
By using the shared variable in the sub report i am able to get  the value of @total in the main report,
for e.g if the value of @total is 100 in the subreport, while coming to the main report the same value is 0 (previous record is having value 0), and the value of @total 100 is showing for next record.
 
Can anybody point out where i am going wrong ?Shocked
 
 
Thanks
Savan
IP IP Logged
Lugh
Senior Member
Senior Member
Avatar

Joined: 14 Nov 2007
Online Status: Offline
Posts: 377
Quote Lugh Replybullet Posted: 24 Jan 2008 at 10:00am
My guess would be a timing issue.  Have you tried using, say, WhilePrintingRecords to force it evaluate later?  I'm not sure exactly what you'd use to force an EvaluateAfter() statement.  But, the fact that it works on the next record suggests that you're calling it in the main report before it gets set in the subreport.


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.