public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { crDailySales rpt = new crDailySales(); rpt.Site = this.Site; return(rpt); }
private void pbGenerateReport_Click(object sender, EventArgs e) { crDailySales crDailySales = new crDailySales(); crDailySales.Database.Tables["transactions_view"].SetDataSource(transactionBL.DailySales(dtpDate.Text)); crDailySales.Database.Tables["SALES"].SetDataSource(transactionBL.TodaySales(dtpDate.Text)); crvDailySales.ReportSource = null; crvDailySales.ReportSource = crDailySales; crvDailySales.Refresh(); }