on 08-20-2010 2:13 PM
hi.
I can see how to set the ReportDocument in the viewer using the code behind.
Is it possible to set it using data binding - so I can have a property "CurrentReportDocument" in my view model and have it bound to the report the WPF viewer is displaying?
thanks
Peter
Hi.
I can't see how to bind the .ReportSource property in the XAML - it doesn't show up in intellisense.
Peter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I was referring to binding the report to the viewer in the codebehind and not in XAML. Here's an example of what I was referring to....
private void Window_Loaded(object sender, RoutedEventArgs e)
{
//Using the ReportDocument SDK
this._report = new ReportDocument();
this._report.Load(<path_to_report_file>);
this.reportViewer.ViewerCore.ReportSource = this._report;
}
Bump!
Does anyone know how to bind to the report property? Perhaps it would help if I could read the help files - but they don't seem to be included in the beta 2 download and the link I found somewhere to the help files isn't valid anymore.
peter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.