private void frmReport_Load(object sender, System.EventArgs e) { this.Report.Size = new System.Drawing.Size(Screen.PrimaryScreen.WorkingArea.Width, Screen.PrimaryScreen.WorkingArea.Height); this.Size = new System.Drawing.Size(Screen.PrimaryScreen.WorkingArea.Width, Screen.PrimaryScreen.WorkingArea.Height); string dir = System.IO.Directory.GetCurrentDirectory(); // bAdminHethong = d.bAdmin(d_userid); i_nhom = get_nhomkho(); if (!bAdminHethong && d.bUserthuong_CamxuatExcel_E11(i_nhom)) { butExcel.Enabled = false; Report.ShowExportButton = false; } // ExportPath = ""; int j = 0; for (int i = 0; i < dir.Length; i++) { if (dir.Substring(i, 1) == "\\") { j++; } if (j == 2) { break; } ExportPath += dir.Substring(i, 1); } ExportPath += "\\pdf\\"; if (!System.IO.Directory.Exists(ExportPath)) { System.IO.Directory.CreateDirectory(ExportPath); } s_dirreport = get_dirreport(56); //doc thu muc report cua tung benh vien i_soluong_le = d.d_soluong_le(i_nhom); i_dongia_le = d.d_dongia_le(i_nhom); i_thanhtien_le = d.d_thanhtien_le(i_nhom); // if (b_bienlai) { Bienlai(); } else if (ReportFile.ToString().ToLower() == "d_phieunhap.rpt") { Phieunhap(); } else if (bDs) { Reportds(); } else if (msg != "") { treem(); } else { PreviewReport(); } }