Report Design
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Report Design
Message Icon Topic: Subreport page footer Post Reply Post New Topic
Author Message
Fern82
Newbie
Newbie


Joined: 21 Dec 2011
Location: Spain
Online Status: Offline
Posts: 1
Quote Fern82 Replybullet Topic: Subreport page footer
    Posted: 21 Dec 2011 at 12:59am
Hi all,
 
I have in the same Main report 3 subreports, each subreport have several lines, I want to print on Main report the subtotal of the actual lines.
Actually I get the total of the subreport when the subreport has finish printing lines.
Can anybody help me?
Thanks.
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 23 Dec 2011 at 7:04am
you can put a shared variable in each of the subreports, so:
shared numbervar subreport1 := 0;
shared numbervar subreport2 := 0;
shared numbervar subreport3 := 0;
 
do this before you call the subreports.
in the subreport update the shared variable to the correct number.
 
shared numbervar subreport1;
shared numbervar subreport2;
shared numbervar subreport3;
subreport1 + subreport2 + subreport3
 
HTH
After the subreports have run, you can do this:
 
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.016 seconds.