How do you make this code working :
Telerik.Reporting.Drawing.SizeU CalculateSize(Telerik.Reporting.Processing.TextBox textBox)
len = textBox.DataObject[
width = len * 6;
//this is pseudo calculation
I try to modify font size of a textbox dynamically depending of text length but when I use this user function, I have and error message :
System.NullReferenceException : 'Object reference not set to an instance of an object.'
Telerik.Reporting.Processing.IDataObject.this[string].get retournée null.
I have set the binding as describe above and when I debug I have my textbox which is passed to the function. I don't understand why I can't get the value of the textbox. For information, i'm passing an object to the report and the textbox is binded to a field of this object. I execute RenderReport ( To generate a PDF ).
Do you have an idea ?