Hi,
I have created a report with the built in UI. I create the parameters programmatically in the following way:
ReportParameter
parameter = new ReportParameter();
parameter.Name =
"ParameterOne";
parameter.UI.AvailableValues.DataSource = m_dataSource;
parameter.UI.AvailableValues.DisplayMember =
"displayText";
parameter.UI.AvailableValues.ValueMember =
"value";
parameter.UI.Visible =
true;
parameter.UI.Text =
"please choose a value";
parameter.Value =
"None";
report.ReportParameters.Add(parameter);
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?
Naphtali