c# - xceed datatgrid export to excel Xceed.Wpf.DataGrid.Export.ExcelExporter class is not found -
i trying export datagrid's data excel. tried using xceed document (see code below).
but there, not able find xceed.wpf.datagrid.export.excelexporter
public static void exporttoexcel(xceed.wpf.datagrid.datagridcontrol dg, string file_name) { try { xceed.wpf.datagrid.export.excelexporter exporter = new excelexporter(dg); // details exporter.detaildepth = int.maxvalue; // use current system list separator exporter.formatsettings.separator = cultureinfo.currentculture.textinfo.listseparator[0]; exporter.export("d:\\orders.csv"); messagebox.show("excel file has been saved"); } catch (exception ex) { messagebox.show(ex.message); } }
Comments
Post a Comment