Last post Oct 07, 2014 02:01 AM by malina
Member
7 Points
44 Posts
Oct 06, 2014 11:44 PM|malina|LINK
Hi
when i run my report its prompting for input values , so to stop this i need to pass my parameters during runtime in C# how can i do this ,i have subreports inside Can Somebody suggest me
Thank you
All-Star
52803 Points
15764 Posts
Oct 07, 2014 12:12 AM|oned_gk|LINK
<CR:CrystalReportSource ID="CrystalReportSource1" runat="server"> <Report FileName="Crystal Reports\CrystalReport.rpt"> <Parameters> <CR:ControlParameter ControlID="" ConvertEmptyStringToNull="False" DefaultValue="0" Name="id" PropertyName="" ReportName="" /> </Parameters> </Report> </CR:CrystalReportSource>
CrystalReportSource1.Report.Parameters[0].DefaultValue = "0";
594 Points
386 Posts
Oct 07, 2014 12:43 AM|aspsak|LINK
Hi,
First link the subreport with main report parameters like this
Once complete this it should not ask the parameter value for SubReport. Main report must have equal or more parameter than subreport.
Then map the crystal report with C#
Oct 07, 2014 02:01 AM|malina|LINK
Hi oned_gk ,
Thanks for your reply
How can i give the parameters to subreport
in my scenario,how can stop prompting the pop up asking inputs
i have total 4 parameters called A,B for main report C,D for sub reports
A & C are employee id's
B & D are dates
suggest me please..
Member
7 Points
44 Posts
how to pass the parameters at runtime in crystal reports using c#
Oct 06, 2014 11:44 PM|malina|LINK
Hi
when i run my report its prompting for input values ,
so to stop this i need to pass my parameters during runtime in C#
how can i do this ,i have subreports inside
Can Somebody suggest me
Thank you
All-Star
52803 Points
15764 Posts
Re: how to pass the parameters at runtime in crystal reports using c#
Oct 07, 2014 12:12 AM|oned_gk|LINK
Suwandi - Non Graduate Programmer
Member
594 Points
386 Posts
Re: how to pass the parameters at runtime in crystal reports using c#
Oct 07, 2014 12:43 AM|aspsak|LINK
Hi,
First link the subreport with main report parameters like this
Once complete this it should not ask the parameter value for SubReport. Main report must have equal or more parameter than subreport.
Then map the crystal report with C#
Member
7 Points
44 Posts
Re: how to pass the parameters at runtime in crystal reports using c#
Oct 07, 2014 02:01 AM|malina|LINK
Hi oned_gk ,
Thanks for your reply
How can i give the parameters to subreport
in my scenario,how can stop prompting the pop up asking inputs
i have total 4 parameters called A,B for main report C,D for sub reports
A & C are employee id's
B & D are dates
suggest me please..