I have a Crystal Reports report and I want to edit a label programmatically from c#. I can manipulate data source but cannot edit a label.
I’m designing a bill report so I need to display company details, date time and some other information which I can’t get from my data source.
Normally for a bill, where the company name and details of it (like address etc) are shown at the top of the bill. In such a case, what I use is the report header. In that case, you can pass on the text to be shown very easily. The other way of passing on something at runtime will be using report parameter. You can bind the parameter to a field or to a formula. Parameters are also very easy to pass on.
In one occasion, I have used the following code to get the parameters from a report dynamically and bind it to a gridview:
And used the following code segment to set parameters: