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