public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { FixIccdPayFee rpt = new FixIccdPayFee(); rpt.Site = this.Site; return(rpt); }
public FrmReportView(FixIccdPayFee flog) : this() { try { this.Text = "定期/固定卡缴费记录报表"; crystalReportViewer1.ReportSource = flog; } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
private void btnrpt_Click(object sender, EventArgs e) { try { if (dataGridView1.DataSource != null) { FixIccdPayFee report = new FixIccdPayFee(); report.SetDataSource(dataGridView1.DataSource); new FrmReportView(report).ShowDialog(); } } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }