コード例 #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            crDailySales rpt = new crDailySales();

            rpt.Site = this.Site;
            return(rpt);
        }
コード例 #2
0
        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();
        }