This is a migrated thread and some comments may be shown as answers.

Run Report Programatically (Silverlight)

1 Answer 37 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
brigus
Top achievements
Rank 2
brigus asked on 04 May 2010, 10:10 PM
Is there a way to programatically run a report when the parameters change without the user needing to press the preview button.  In my application the users select a row in the datagrid and the report should run and get the corresponding data.  It works the with the first click but it does not run after that because the render begin event is not fired again until preview is pressed.  Also, is there away to change the test on the preview button? 

1 Answer, 1 is accepted

Sort by
0
brigus
Top achievements
Rank 2
answered on 04 May 2010, 10:46 PM
I found the answer.   

 

((

ReportViewerModel)(ReportViewer.DataContext)).ApplyReportParametersCommand.Execute(null);

 

 

Tags
General Discussions
Asked by
brigus
Top achievements
Rank 2
Answers by
brigus
Top achievements
Rank 2
Share this question
or