Exemple #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            ShopingCrystalReport rpt = new ShopingCrystalReport();

            rpt.Site = this.Site;
            return(rpt);
        }
        public ShopingReportCrystalReportUI(string month)
        {
            InitializeComponent();



            ShopingManager aShopingManager = new ShopingManager();
            HelperClass    helper          = new HelperClass();


            List <MemberWithShoping> shopingList = aShopingManager.GetShopingList(month);

            ShopingCrystalReport shopingCrystalReport = new ShopingCrystalReport();

            shopingCrystalReport.SetDataSource(shopingList);
            shopingCrystalReport.SetParameterValue("Month", helper.CurrentMonthAsString());
            shopingCrystalReportViewer.ReportSource = shopingCrystalReport;
        }