public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { CrystalReport2 rpt = new CrystalReport2(); rpt.Site = this.Site; return(rpt); }
private void button2_Click(object sender, EventArgs e) { Viewfrm vf = new Viewfrm(); CrystalReport2 rpt = new CrystalReport2(); vf.crystalReportViewer1.ReportSource = rpt; vf.Show(); }