public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { rptStocks rpt = new rptStocks(); rpt.Site = this.Site; return(rpt); }
private void frmRptStocks_Load(object sender, EventArgs e) { rptStocks rep = new rptStocks(); npos_dbDataSet ds = new npos_dbDataSet(); DisplayStocksTableAdapter adp = new DisplayStocksTableAdapter(); rep.SetDataSource(ds); adp.Fill(ds.DisplayStocks); crystalReportViewer1.ReportSource = rep; }