public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { RunningRpt rpt = new RunningRpt(); rpt.Site = this.Site; return(rpt); }
private void runningBillsRptToolStripMenuItem_Click(object sender, EventArgs e) { try { RunningBillRpt frm1 = new RunningBillRpt(); RunningRpt rp = new RunningRpt(); frm1.RD = rp; frm1.strQuery = "select * from tbl_bill"; frm1.Show(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }