public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { rptProduct rpt = new rptProduct(); rpt.Site = this.Site; return(rpt); }
private void frmProductReport_Load(object sender, EventArgs e) { rptProduct rprod = new rptProduct(); rprod.Database.Tables[0].ApplyLogOnInfo(log); try { datasetRetailStore ds = new datasetRetailStore(); ds.Product.Merge(d.dataProduct()); rprod.Database.Tables[0].SetDataSource(ds); crvProductReport.ReportSource = rprod; } catch (OleDbException ex) { MessageBox.Show(ex.Message.ToString()); } }
public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { rptProduct rpt = new rptProduct(); rpt.Site = this.Site; return rpt; }