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

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

            string lenh = "EXEC sp_INPHIEUDIEM '" + cmbMaSinhVien.Text + "'";

            DataTable dataTable = Program.ExecSqlDataTable(lenh);

            obj.SetDataSource(dataTable);
            obj.SetParameterValue("TENLOP", cmbLop.Text);
            obj.SetParameterValue("MASV", cmbMaSinhVien.Text);

            crvPhieuDiemSinhVien.ReportSource = obj;
        }