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

            rpt.Site = this.Site;
            return(rpt);
        }
コード例 #2
0
        private void ThongKe_Load(object sender, EventArgs e)
        {
            crThongKe gg = new crThongKe();

            gg.SetParameterValue("@Thoigianbatdau", DateTime.Parse(ThoiGianBatDau));
            gg.SetParameterValue("@Thoigianketthuc", DateTime.Parse(ThoiGianKetThuc));
            gg.SetParameterValue("TongTien", TongTien);
            crystalReportViewer1.ReportSource = gg;
        }