I have created a report with the built in UI. I create the parameters programmatically in the following way:
parameter = new ReportParameter();
parameter.UI.AvailableValues.DataSource = m_dataSource;
"please choose a value";
In addition to the report i have a aspx page with a web report viewer and a button.
In the button event click I would like to read the values of the parameters as the user entered (or the default values if none were entered) and save them to my database.
I can't get to the new values, all I get is the default values.
I think if I could fire the Need_DataSource event I would be able to read the values the users chose there. But I can't figure out a way to fire the event without creating a new report and then loosing all the information I need.
Is this they way to get what I want? If so how can I fire the event. If not how can I achieve what I want?