private void ExportToExcel() { try { DataTable dt2Export = new DataTable(); using (BookmarksDL bkmrkDL = new BookmarksDL()) { dt2Export = bkmrkDL.GetTable(new Bookmark { }); } exportMan.Export2Excel(dt2Export, "Bookmarks", "D:/Bookmarks.xls"); } catch (Exception ex) { LightLogger.LogMethod(ex, this.Name, "ExportToExcel"); MessageUtil.Error("Export Operation failed"); } }