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

            rpt.Site = this.Site;
            return(rpt);
        }
Пример #2
0
        private void crystalReportViewer1_Load(object sender, EventArgs e)
        {
            CRTaiKhoan obj = new CRTaiKhoan();

            string    strLenh = "EXEC SP_THONGKETAIKHOAN '2017-1-1', '2017-12-1'";
            DataTable MyTable = Program.ExecSqlQuery(strLenh, Program.connstr);

            obj.SetDataSource(MyTable);
            obj.SetParameterValue("DATE1", "1/1/2017");
            obj.SetParameterValue("DATE2", "1/12/2017");
            crystalReportViewer1.ReportSource = obj;
        }