How to keep a text field height fixed?

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

How to keep a text field height fixed?

Post by Artimidor »

For design purposes, I try to ensure that a text field doesn't get any bigger than just two lines, no matter what. However, for testing, I add four lines, as whenever the field is filled by code, the size might vary. In design mode I see just the two lines (pic 1). Word Wrap is off, Max Number of Lines is set to 2. Regardless, the preview (pic 2) always displays the four lines, and whatever property I change, it doesn't seem as though I can influence this behavior.

Have a look at the attached screenshots and the attached report file for the source. Let me know if there's a way to accomplish this, because as of yet I haven't found one...
Attachments
1.png
1.png (27.2 KiB) Viewed 933 times
Artimidor
Posts: 38
Joined: Thu Jan 09, 2020 8:15 am

Re: How to keep a text field height fixed?

Post by Artimidor »

Here are the rest of the attachments...
Attachments
Report_Example.mrt
(5.79 KiB) Downloaded 61 times
2.png
2.png (1.07 KiB) Viewed 930 times
Lech Kulikowski
Posts: 6196
Joined: Tue Mar 20, 2018 5:34 am

Re: How to keep a text field height fixed?

Post by Lech Kulikowski »

Hello,

You should set the ReportDisplayMode for the viewer to Div:
https://www.stimulsoft.com/en/documenta ... ttings.htm

Thank you.
Artimidor
Posts: 38
Joined: Thu Jan 09, 2020 8:15 am

Re: How to keep a text field height fixed?

Post by Artimidor »

Hmmm... We're using Reports and Dashboards for JS and it looks like there is no such setting to be found there...

See here: https://www.stimulsoft.com/en/documenta ... ttings.htm
Lech Kulikowski
Posts: 6196
Joined: Tue Mar 20, 2018 5:34 am

Re: How to keep a text field height fixed?

Post by Lech Kulikowski »

Hello,

You can use:
appearance.reportDisplayMode
https://www.stimulsoft.com/en/documenta ... ttings.htm

Thank you.
Artimidor
Posts: 38
Joined: Thu Jan 09, 2020 8:15 am

Re: How to keep a text field height fixed?

Post by Artimidor »

Hmm again...

We have the problem in the designer, and there's no option there.

Also, side note: Try the version found at designer.stimulsoft.com. The problem is there too.
Andrew
Posts: 4104
Joined: Fri Jun 09, 2006 3:58 am

Re: How to keep a text field height fixed?

Post by Andrew »

Hello,

This is related to the JS files not the designer exe. In designer exe you may not set such an option.

Thank you.
Artimidor
Posts: 38
Joined: Thu Jan 09, 2020 8:15 am

Re: How to keep a text field height fixed?

Post by Artimidor »

This looks like a bug to us. If this behavior can be reproduced on designer.stimulsoft.com, is it not a bug?
Lech Kulikowski
Posts: 6196
Joined: Tue Mar 20, 2018 5:34 am

Re: How to keep a text field height fixed?

Post by Lech Kulikowski »

Hello,

No, it is not the bug. On designer.stimulsoft.com is used another reportDisplayMode mode.

Thank you.
Post Reply