public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { EPF_EVEMC_RPT rpt = new EPF_EVEMC_RPT(); rpt.Site = this.Site; return(rpt); }
private void btnEVEMC_Click(object sender, EventArgs e) { DataSet dsReport = new DataSet(); dsReport = myReport2.GetEVEMC(cmbYear.Text.PadLeft(4, '0') + cmbMonth.SelectedValue.ToString().PadLeft(2, '0')); dsReport.WriteXml("EVEMC.xml"); EPF_EVEMC_RPT objReport = new EPF_EVEMC_RPT(); objReport.SetDataSource(dsReport); ReportViewerForm objReportViewer = new ReportViewerForm(); objReportViewer.crystalReportViewer1.ReportSource = objReport; objReportViewer.Show(); }