Exemplo n.º 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            CrystalReport_tkNhanVien rpt = new CrystalReport_tkNhanVien();

            rpt.Site = this.Site;
            return(rpt);
        }
Exemplo n.º 2
0
        private void frmThongKeNhanVien_Shown(object sender, EventArgs e)
        {
            DTO.fThongKeNhanVienDTO fthongkemonan = new DTO.fThongKeNhanVienDTO();
            DataTable table = fthongkemonan.LayDS_NHANVIEN();
            CrystalReport_tkNhanVien report = new CrystalReport_tkNhanVien();

            report.SetDataSource(table);
            crystalReportViewer2.ReportSource = report;
        }
Exemplo n.º 3
0
        private void crystalReportViewer2_ReportRefresh(object source, CrystalDecisions.Windows.Forms.ViewerEventArgs e)
        {
            DTO.fThongKeNhanVienDTO fthongkenhanvien = new DTO.fThongKeNhanVienDTO();
            DataTable table = fthongkenhanvien.LayDS_NHANVIEN();
            CrystalReport_tkNhanVien report = new CrystalReport_tkNhanVien();

            report.SetDataSource(table);
            crystalReportViewer2.ReportSource = report;
        }
Exemplo n.º 4
0
        private void crystalReportViewer2_Load(object sender, EventArgs e)
        {
            CrystalReport_tkNhanVien report = new CrystalReport_tkNhanVien();

            CrystalDecisions.Shared.TableLogOnInfo tlicurrent = new CrystalDecisions.Shared.TableLogOnInfo();
            foreach (CrystalDecisions.CrystalReports.Engine.Table tbcurrent in report.Database.Tables)
            {
                tlicurrent = tbcurrent.LogOnInfo;
                tlicurrent.ConnectionInfo.ServerName = Environment.MachineName;
                tbcurrent.ApplyLogOnInfo(tlicurrent);
            }
        }