tahmeed Posted April 20, 2010 Posted April 20, 2010 (edited) Dear Experts, Please help me to send parameter programetically to Crystal Report Subreport from C#. I can pass parameter to the main report using the following way: ReportDocument cryRpt = new ReportDocument(); cryRpt.Load("rptMainReport.rpt"); ParameterFields parameterFields = new ParameterFields(); ParameterField parameterField = new ParameterField(); parameterField.ParameterFieldName = "myRoleID"; ParameterDiscreteValue parameterValue = new ParameterDiscreteValue(); parameterValue.Value = 2; parameterField.CurrentValues.Add(parameterValue); parameterFields.Add(parameterField); CrystalReportViewer1.ParameterFieldInfo = parameterFields; CrystalReportViewer1.ReportSource = cryRpt; but having problem to send parameter to subreport. so please help me sending example code. Thanx in advance Tahmeed Ahmed Edited April 20, 2010 by tahmeed Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.