Hi,
I would like to ask a few questions about Reporting Services.
1. Can we add new parameters (by code on VS2005) at runtime when the report it's on a server? Since the job of the Report Viewer only allow to get/set parameters and not add new parameter, i wonder if there is a way to add parameter without adding manually on the report design mode.
2. Can i add some filter to change the data show on the report? (To be more specific, I didnt mean to add filter at the design mode on VS2005, I want to be able to add filter by code)
3. Can i change the query (dataset) of a report at runtime (once again i mean by code) which it's on the reportserver? (Since we can change the query on a rdlc report , i wonder if we can do the same on a rdl.)
Thanks in advance
1. No, you can only change the # of parameters by republishing the RDL.
2. No, you can only add filters in the RDL. You can affect the filter by runtime parameters, though.
3. You can change the connection string at runtime via a parameter, but not the query. That would require republishing an updated RDL.
BTW, you can call SetReportDefinition programatically, so you can achieve all your objectives roundabout by crafting an updated RDL and republishing in code or with script.
No comments:
Post a Comment