public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { rptWarehouse rpt = new rptWarehouse(); rpt.Site = this.Site; return(rpt); }
private void frmWarehouseReport_Load(object sender, EventArgs e) { rptWarehouse rw = new rptWarehouse(); rw.Database.Tables[0].ApplyLogOnInfo(log); try { datasetRetailStore ds = new datasetRetailStore(); ds.Warehouse.Merge(d.dataWarehouse()); rw.Database.Tables[0].SetDataSource(ds); crvWarehouseReport.ReportSource = rw; } catch (OleDbException ex) { MessageBox.Show(ex.Message.ToString()); } }
public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { rptWarehouse rpt = new rptWarehouse(); rpt.Site = this.Site; return rpt; }