question

AlokAswal-2730 avatar image
0 Votes"
AlokAswal-2730 asked Joyzhao-MSFT commented

SSRS - Dynamic textbox length at run time

Hi All,

We need to define the length of the textbox at runtime.
User will be providing the value for text box length in a report parameter and based on the parameter value we need to define the length of the text box.

I tried to achieve this functionality but no luck.
Could you guys please help?

Thanks in Advance.

Regards,
Alok

sql-server-reporting-services
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @AlokAswal-2730 ,
If the answer is helpful, please click "Accept Answer" and upvote it. Thanks for understanding.
Regards,
Joy

0 Votes 0 ·

1 Answer

Joyzhao-MSFT avatar image
0 Votes"
Joyzhao-MSFT answered

Hi @AlokAswal-2730 ,
Since the size property of the text box cannot be bound to an expression, the height and width of the report element can only be dynamically controlled through these properties. You need to use CanGrow and CanShrink at the same time to dynamically handle content-based sizes.
For more information, please refer to : Allow a Text Box to Grow or Shrink (Report Builder and SSRS).

Best Regards,
Joy


If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.