public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { HoaDonInn rpt = new HoaDonInn(); rpt.Site = this.Site; return(rpt); }
public void InHoaDon() { HoaDonIn hdi = new HoaDonIn(); DataSet ds = new DataSet(); hoadon_bus.HoadonIn().Fill(ds); HoaDonInn hoadoninn = new HoaDonInn(); hoadoninn.SetDataSource(ds.Tables[0]); hdi.crvhoadon.ReportSource = hoadoninn; this.Hide(); hdi.ShowDialog(); }