hi to all
i have a subreport in my main report and it has one storeProcedure as datasource that has one sp Parameter like "MyParameter".
i want to get this parameters by c# code ,how can i do this?
in main report we can get paramters using below code but it falling to problem when
we want to use this code for subreport !!!!!!!
ReportDocument reportDocument;
reportDocument.Load(pageObject.Server.MapPath(mainreportFilename));
foreach (CrystalDecisions.Shared.ParameterField field in reportDocument.ParameterFields)
//some code
thanks for any help.
How to get sub report Parameters by c#
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Khan Abrar AhmedRank #778 · 3K reputationPosted May 13, 2014, 9:29 PM EDT
you have to find subreport on main report and then search the paramter for subreport.
mehdi sabet14 reputationPosted May 13, 2014, 10:04 PM EDT