Hi,
i have gone through the link http://help.infragistics.com/doc/Reporting/2014.1/CLR4.0/?page=How_to_Export_a_Report_Using_the_Report_Viewer.html this is exporting the xamreportviewer to PDF but it has the reference of xamreportviewer in code behind. can i hae an MVVM example of this.
it will be great if i can export "Report.igr" directly to PDF.
Regards,
Kamlendra
Hi Kamlendra,
There is documentation on how to export the igr file to a PDF directly. This may be helpful to you. http://help.infragistics.com/Help/Doc/Reporting/2014.1/CLR4.0/html/How_to_Export_a_Report_Server_Side_Without_the_Report_Viewer_API.html
Please let me know if you have further question.
Hi Marianne,
i am using a WPF app for this POC on infragistic reporting control. And even the link you have forwarded is not the MVVM one.
I’m attaching a WPF Reporting sample that is using both approaches to exporting the report to a PDF. One uses the XamReportViewer’s export method. The other uses the ServerExportFactory to export the igr directly.
As for the MVVM approach, you might be able to work with Commands from your ViewModel to accomplish what you need using the Reporting Engine programmatically, perhaps similarly to what I used button clicks to do.
Hope this helps.
That's exactly what i needed. i have modified that for MVVM. Many-Many Thanks!!
Regards,Kamlendra
You are very welcome. Glad I could help.