Do not display two lines for text field

Stimulsoft Reports.WEB discussion
Leandro
Posts: 74
Joined: Tue Aug 08, 2006 9:07 am
Location: Brasil

Do not display two lines for text field

Post by Leandro »

By Desginer Preview of the text field is larger than the field the content is truncated.
But when I view the report in HTML Preview or StiWebViewer the text is not truncated generating two lines for each record, generating error in page size

Follow the print screen of screens:
Image

Image

What should I do to fix this problem and truncate the text correctly?
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Do not display two lines for text field

Post by Edward »

Hi Leandro,

Could you please send a report template (mrt file) to support[at]stimulsoft.com for analysis.

Thank you.
Leandro
Posts: 74
Joined: Tue Aug 08, 2006 9:07 am
Location: Brasil

Do not display two lines for text field

Post by Leandro »

Already sent the e-mail
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Do not display two lines for text field

Post by Edward »

Hi Leandro,

Thank you for the e-mail.

Please set Text19.CanGrow = true and Text19.WordWrap=true.

Thank you.
Leandro
Posts: 74
Joined: Tue Aug 08, 2006 9:07 am
Location: Brasil

Do not display two lines for text field

Post by Leandro »

Hi Edward, thanks for the support.
Options Text19.CanGrow = true and Text19.WordWrap = true corrected the error in page size.

But is there any option to truncate the text in the control without displaying two lines?
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Do not display two lines for text field

Post by Edward »

Hi Leandro,

Yes, there is a method on how to do it:

{MyDataSource.MyDataColumn.Substring(0,20)}

Thank you.
Leandro
Posts: 74
Joined: Tue Aug 08, 2006 9:07 am
Location: Brasil

Do not display two lines for text field

Post by Leandro »

I tried this way, but error occurs when the text is less than 20.
So did the following:
{MyDataSource.MyDataColumn.Length > 20 ? MyDataSource.MyDataColumn.Substring(0,20) : MyDataSource.MyDataColumn.ToString()}

Thanks for help
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Do not display two lines for text field

Post by Edward »

Hi Leandro,

Please let us know if you need any help.

Thank you.
Leandro
Posts: 74
Joined: Tue Aug 08, 2006 9:07 am
Location: Brasil

Do not display two lines for text field

Post by Leandro »

Hi Edward,

Thank you...
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Do not display two lines for text field

Post by Edward »

Hi Leandro,

You are very welcome :)

Thank you.
Post Reply