Have a .Text Expression in C# Code
Hello,
because we get updated Report we like to have all settings in Report Source Code at one place.
we have a Text Field with a expression like .Text ="[fieldname]"
i made a function to replace this text it looks like [ChangeMe([fieldname])] that works well in report designer UI.
now i need the same within C# but it seems the function is not found at report preview .
having MyTextField.Text = "[ChangeMe([fieldname])]" run into error.
please help :)

Comments
This is an older post, but I think you should be someting like this:
MyTextField.Text = ChangeMe((string)Report.GetColumValue("fieldname"));So I would think "fieldname" will have to become "datasource.fieldname". ChangeMe should then also be a C# function that is called with a string argument and returns another string?