Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
CrystalDecisions.CrystalReports.Engine.ReportDocument cr = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
cr.Load(@"C:\ReportFileName.rpt"));
CrystalDecisions.Shared.ParameterValues pv = new CrystalDecisions.Shared.ParameterValues();
CrystalDecisions.Shared.ParameterDiscreteValue pdv = new CrystalDecisions.Shared.ParameterDiscreteValue();
pdv.Value = 100; //Or a string, or boolean etc
pv.Add(pdv);
cr.DataDefinition.ParameterFields["@Parameter_Name"].ApplyCurrentValues(pv);
crystalReportViewer1.ReportSource = cr;