Пример #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            TotalSalesByDate rpt = new TotalSalesByDate();

            rpt.Site = this.Site;
            return(rpt);
        }
        private void TotalSalesReport1_Loaded(object sender, RoutedEventArgs e)
        {
            ReportClass totalSales;

            if (ShowType == 0)
            {
                totalSales = new TotalSalesByItem();
            }
            else
            {
                totalSales = new TotalSalesByDate();
            }
            totalSales.SetDataSource(this.MyDataSource);
            this.crystalReportViewer1.ViewerCore.ReportSource = totalSales;
        }