Posted 13 May 2021, 9:44 pm EST
I’m using AR14, but could upgrade the project to 15 if it helps.
My report is for an invoice. I have a fixed size area on the front page of the report for invoice line details. This is implemented using a BandedList control, with each row containing fields for the line description, amounts, etc. The problem I’m having is that the invoice line descriptions can cover a variable number of lines of text, but I don’t seem to be able to find any way to size the text box and the banded list row that contains it to ensure that the right amount of vertical space is used to show the content. I’ve tried using a large initial height and setting ShrinkToFit to true on the TextBox and CanShrink on the containing BandedList_Details control, but the settings are ignored and the fixed height is always used. I’ve also tried providing a script function to set the height, but I’m not sure what is should return or if it will work (at the moment I always get the error:
Invalid expression. Literal expressions for this property must be of type 'length.' Valid units are 'cm', 'mm', 'in', 'pt', and 'pc'.
I’m not sure how to return a ‘length’, or even if I can (setting my function return type to ‘length’ or ‘Length’ still gives the same error)
Any suggestions?