I was hoping to get some information on the recommended method of controlling the rendering execution of a report. I have a reporting tab within a XamDockManager which will show the results of some data selected in another view, however I want to be able to control when the report is re-rendered with the source viewmodel object data.
Thanks in advance.
You're welcome. Let me know if you have any further questions on this.
Ok that makes sense -- thanks.
Hi Jerry,
As long as the Report is already pointing to the source viewmodel object data you can call the XamReportViewer.Refresh method to reload the report using the updated data.
So for example, let's say you have a report that is currently already rendered and the data rendered comes from Collection A. Let's also say you have a DataGrid in another view that is bound to Collection A. Through the grid UI you change some values in Collection A so you now have a modified collection. The data shown in the report is still showing the old outdated values though. You need to refresh the report so it grabs the current state of Collection A again so it can render it. XamReportViewer.Refresh() will do that.