Is it possible to access the parameters from a report?
I would definitely add that to your backlog. Most reports are not just dealt with through a viewer. There should be an API available to access the report and any metadata to do with that report including any paramter values. Do no restrict the use of your reports to a viewer API.
Hi,
For V1 we will provide a way to bind the parameters through the viewer API. That means that you will be able to provide your own UI where the user could set the parameter values and then you can set them when you trigger the report processing. Based on that you will be able to achieve what you want.
Currently, we don’t have plans to provide any specific mechanism to query the values of the parameters the user choose inside XamReportViewer.
I hope this answers your question.
Thanks,
Leo
I am sorry, I should have been more specific. Is it possible to access the report parameters from code in C#. For example, I will have a parameter in the report called Include Attachments. When this parameter is checked, when an export if performed I need to check this parameter In the Exported event handler and append the attachments to the exported file.
Yes, you can bind them to the data sources and/or you can access them through the expression language using “=Parameters.ParamName”.