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

Report + WPF + Parameters + Object DataSource

1 Answer 124 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Christopher
Top achievements
Rank 1
Christopher asked on 27 Jun 2015, 10:45 PM

Hello,

 this is my scenario: WPF application with ReportViewer. My report uses a objectDataSource and displays a table with data. The DataMember (method which loads the data) expects 3 parameters: dateFrom, dateTo and a list of strings). I would like to select these parameters with custom input controls and pass them to the report. I don't want to use the built-in parameter selector because it doesn't fulfill my requirements.

 

So it is possible to pass parameters to the report? If I follow the documentation the DataObjectSource is created multiple times (and the data is loaded multiple times) which I don't understand because I only have one ObjectDataSource in my report!

 

Any help would be appreciated!

1 Answer, 1 is accepted

Sort by
0
Christopher
Top achievements
Rank 1
answered on 27 Jun 2015, 11:04 PM

ok, problem solved!

 

It seems that it just was a crappy report definition file ...

Tags
General Discussions
Asked by
Christopher
Top achievements
Rank 1
Answers by
Christopher
Top achievements
Rank 1
Share this question
or