Generally, we recommend to set values to report items (e.g. TextBoxes) in the report definition. You may use Expressions
for this purpose. The data may come from a DataSource - check the available Data Source components
. The value would be automatically calculated and resolved run-time by the Reporting engine.
You may also use Report Parameters
in the expression.
If the value of a TextBox is supposed to come directly from the client (e.g. Report Viewer), you may set the value of the TextBox to the value of a Report Parameter (e.g. '= Parameters.ParameterName
.Value') and pass the actual value from the user in the client ReportSource
You may also pass objects from the client to the report via the UserIdentity.Context
property. This dictionary has been introduced as means for passing values from the HttpContext
to the report. Details and example on how to use it can be found in How to use information from HttpContext in Custom Report Resolver
If the above approaches are not suitable, you may use Custom Report Resolver
where to instantiate the report, set/modify the value of the report item and return the modified report instance wrapped in an InstanceReportSource
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Feedback Portal
and vote to affect the priority of the items