hi
i didn't find the class used in VB.Net. could you give an example for C# ?
HI Horen
Got it. Thanks very much.
Weiqi
Hi Weiqi,
You should also add the reference of Infragistics3.Wpf.DataPresenter.ExcelExporter.v9.2 and it should work correctly.
Horen
hi horen
thanks for replying so quickly. i have add the referrence of Infragistics.Excel. but i still not find the
DataPresenterExcelExporter . my dll version is 9.2.0.1007. is it too old?
Thanks,
Hi panweiqi,
You could see an example for C# in our Feature Browser (xamDataGrid node - Excel Exporter - Export To Excel sample), accessible from the Start Menu - Infragistics - NetAdvantage 2009.2 - WPF - Samples - Feature Browser.
Basically you should use this code to create an exporter and use its export method:
DataPresenterExcelExporter exporter = new DataPresenterExcelExporter();
exporter.Export(myGrid, "Testing.xlsx", WorkbookFormat.Excel2007, this.ExportOptions());
Hope this helps.
Sincerely,