Report Viewer (rdcl) in MVVM script

I'm going to start making some reports in my application, and I'm not sure where to start. I have a client application with Prism and MVVM that interacts with the WCF and EF4.1 and SQL services in the reverse order.

How to make report designer support ViewModel?

Any good examples would be appreciated.

Edit: I have a basic understanding of how to do this, but this is not very good, and I hope for a better solution that can help ...

+4
source share
2 answers

Features such as ViewModel binding for a ReportViewer control cannot be supported because it is a WinForms control.

To process the report viewer, we use the interface that implements the View, which hosts the ReportViewer. ViewModel has a property for this interface, and it can directly contact ReportViewer to set the path, credentials, and ServerReport parameters. Report parameters are provided as normal properties in the viewmodel, which, when updated, also set properties in the ReportViewer.

+2
source

In ActiveReports you can link a report to a collection of objects (see ListDataSource ), you can also take control of data binding with ActiveReports disabled . This is not exactly what you need, but it will allow you to bind to any object, including the ViewModel (just put the ViewModel in a singleton array or use unbound mode).

Scott Willeke GrapeCity 
0
source

All Articles