private void cmdXML_Click(object sender, EventArgs e) { SysReportCollection objDulieuDkCollection = new Select().From(SysReport.Schema) .ExecuteAsCollection<SysReportCollection>(); DataTable xmlDulieuDK = objDulieuDkCollection.ToDataTable(); if (!System.IO.Directory.Exists(PathFolder)) { System.IO.Directory.CreateDirectory(PathFolder); } string path = string.Format("{0}/{1}.xml", PathFolder, Utility.sDbnull("SysReportXML")); xmlDulieuDK.WriteXml(path); Utility.ShowMsg("Xuất dữ liệu thành công", "Thông báo"); }