public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { rptReportesObstetras rpt = new rptReportesObstetras(); rpt.Site = this.Site; return(rpt); }
private void crystalReportViewer1_Load(object sender, EventArgs e) { try { rptReportesObstetras rptAlertaControlPeuperio = new rptReportesObstetras(); crParameterDiscreteValue.Value = "M001"; crParameterFieldDefinitions = rptAlertaControlPeuperio.DataDefinition.ParameterFields; crParameterFieldDefinition = crParameterFieldDefinitions["pidtmicrored"]; crParameterValues.Add(crParameterDiscreteValue); crParameterFieldDefinition.ApplyCurrentValues(crParameterValues); crystalReportViewer1.ReportSource = rptAlertaControlPeuperio; crystalReportViewer1.Refresh(); } catch (Exception m) { MessageBox.Show(m.Message); } }