Text box auto width not working properly with leading spaces

Stimulsoft Reports.NET discussion
Post Reply
Artimidor
Posts: 39
Joined: Thu Jan 09, 2020 8:15 am

Text box auto width not working properly with leading spaces

Post by Artimidor »

As problems are piling up in the other thread I've started (Variables/calculated columns not working), and I haven't received a reply from you in this regard, I'll put this separate issue in a new thread. So here it is.

See the attached screenshots (I've updated them, so that you can see at one glance where the problem lies).

- I add a textbox to the data band.
- The text box is set to "Auto Width".
- In the text box, we use the attached expression to display the field with the intention of adding spaces ahead of the text, followed by the category level.
- The leading spaces are displayed, however they are ignored when the size of the field is being determined. If the space is replaced with a character like "x" the text boxes stretches properly.

Looks like a bug - or is there a reason for this behavior? How can we make sure that the whole string expression we put together is displayed?

Thanks for any input!
Attachments
aaa.png
aaa.png (133.69 KiB) Viewed 910 times
Lech Kulikowski
Posts: 7341
Joined: Tue Mar 20, 2018 5:34 am

Re: Text box auto width not working properly with leading spaces

Post by Lech Kulikowski »

Hello,

Please send us a sample report that reproduces the issue for analysis.

Thank you.
Post Reply