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);     } } 

enter image description here


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -