public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { TempIccdPayFee rpt = new TempIccdPayFee(); rpt.Site = this.Site; return(rpt); }
public FrmReportView(TempIccdPayFee tlog) : this() { try { this.Text = "临时卡缴费记录报表"; crystalReportViewer1.ReportSource = tlog; } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
private void button1_Click(object sender, EventArgs e) { try { if (dataGridView3.DataSource != null) { TempIccdPayFee report = new TempIccdPayFee(); report.SetDataSource(dataGridView3.DataSource); new FrmReportView(report).ShowDialog(); } } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }