on 02-21-2017 3:43 PM
Hi,
We have a Crystal Report Viewer inside a .NET web application. Is there a way to iterate through the fields in a generated report document and modify the displayed field value at runtime?
Here is pseudo code example of what I am trying to achieve:
MyMethod(ReportDocument report)
{
var allReportFields = report.getAllFields(); //???
//Add “some_text” suffix to all fields starting with “*”
Foreach(var field in allReportFields)
{
If(field.value.beginsWith(“*”)
{
//Change the field value
field.value += “some_text”;
}
}
}
Regards,
Georgi
Hello,
No, that is what the refresh button is for, it updates the data coming from the DB.
If you want to modify Static text that is easy, see KBA 2281780 for samples or try searching or look in the SDK help file or in Inteli-sense withing VS.
Don
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Oh, another way is to insert a text object and then drop the field into that object, now you can append text onto it.
Don
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
79 | |
9 | |
9 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.