Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Pass Parameters to Subreports from main Report. Post Reply Post New Topic
Author Message
shahbaz
Newbie
Newbie


Joined: 09 Feb 2014
Online Status: Offline
Posts: 2
Quote shahbaz Replybullet Topic: Pass Parameters to Subreports from main Report.
     Posted: 12 Feb 2014 at 5:40am
i am working on crystal reports XI. there are two subreports in reports. i want to pass parameters to subreports using C#.
any one can guide me .
thanks in advance
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Quote lockwelle Replybullet Posted: 12 Feb 2014 at 7:48am
I have never set parameters in a subreport from C#.

Are the subreports run only once, like in the report footer? If so, you should be able to drive down through the report object and set the parameters/connections/etc from c#.

If they are called multiple times (like once per group) you should link them to the main report in CR, otherwise the reports will all look the same.

HTH
IP IP Logged
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