Hi Gontrand,
Thank you for using syncfusion products.
Please go through the online sample link for exporting the data table to an excel file by using ImportDataTable method.
http://asp.syncfusion.com/sfaspnetsamplebrowser/10.1.0.44/Web/XlsIO.Web/samples/4.0/Data%20Binding/ImportExportDataTable/CS/ImportExportDataTable.aspxPlease go through the following code snippet for exporting the XML data to an excel file by using ImportDataTable method.
Code Snippet [C#]:
private DataTable northwindDt;
//Load Data
DataSet customersDataSet = new DataSet();
customersDataSet.ReadXml(ResolveApplicationDataPath("customers.xml"), XmlReadMode.ReadSchema);
northwindDt = customersDataSet.Tables[0];
//Import method
sheet.ImportDataTable(northwindDt, true, 3, 1, -1, -1);
Please try know the above code snippet at your side and let us know if this helps you.
Please let us know if you require any further clarifications.
Regards,
Sridhar.S