How do i do that tasks?
I want to export data from grid to excel.
and, printing that data.
How??
Hi,
I would advise you to become familiar with a great solution, suggested by Andrew Flick - Exporting the XamDataGrid to Excel at
http://blogs.infragistics.com/blogs/andrew_flick/archive/2008/10/22/exporting-the-xamdatagrid-to-excel.aspx
The used approach let you export your xamDataGrid to Excel with only a couple lines of code.
xamDataGridExcelExporter.xamDataGridExcelExporter xamDataGridExcelExporter1 = new xamDataGridExcelExporter.xamDataGridExcelExporter();xamDataGridExcelExporter1.Export(this.xamDataGrid1, @"C:\Excel\ExportFile.xls");
The solution is presented through a working sample application.
Best Regards,Yanko
The WPF Reporting component from the NetAdvantage for WPF 2008 Vol.1: WPF 8.2 July 2008 CTP currentlysupports only the XPS format for export - http://forums.infragistics.com/forums/t/11536.aspx .In answer to your question - "How to export data from grid to exel,and printig that data ?" I could suggest you the following.
1. Use the Infragistics.Exel library (as Andrew Flick advises at http://forums.infragistics.com/forums/t/2692.aspx ).2. Use the solution offered by Joe Modica at http://forums.infragistics.com/forums/t/3857.aspx .
By the way, you can request the feature at http://devcenter.infragistics.com/Protected/RequestFeature.aspx .