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); i_nhom = get_nhomkho(); i_soluong_le = ttb.d_soluong_le(i_nhom); i_dongia_le = ttb.d_dongia_le(i_nhom); i_thanhtien_le = ttb.d_thanhtien_le(i_nhom); string dir = System.IO.Directory.GetCurrentDirectory(); 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); } PreviewReport(); }