Page 1 of 2
Do not display two lines for text field
Posted: Mon Oct 26, 2009 7:14 am
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:
What should I do to fix this problem and truncate the text correctly?
Do not display two lines for text field
Posted: Mon Oct 26, 2009 7:53 am
by Edward
Hi Leandro,
Could you please send a report template (mrt file) to support[at]stimulsoft.com for analysis.
Thank you.
Do not display two lines for text field
Posted: Mon Oct 26, 2009 10:48 am
by Leandro
Already sent the e-mail
Do not display two lines for text field
Posted: Mon Oct 26, 2009 2:39 pm
by Edward
Hi Leandro,
Thank you for the e-mail.
Please set Text19.CanGrow = true and Text19.WordWrap=true.
Thank you.
Do not display two lines for text field
Posted: Tue Oct 27, 2009 6:46 am
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?
Do not display two lines for text field
Posted: Wed Oct 28, 2009 6:20 am
by Edward
Hi Leandro,
Yes, there is a method on how to do it:
{MyDataSource.MyDataColumn.Substring(0,20)}
Thank you.
Do not display two lines for text field
Posted: Wed Oct 28, 2009 1:02 pm
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
Do not display two lines for text field
Posted: Fri Oct 30, 2009 4:16 am
by Edward
Hi Leandro,
Please let us know if you need any help.
Thank you.
Do not display two lines for text field
Posted: Tue Nov 03, 2009 12:32 pm
by Leandro
Hi Edward,
Thank you...
Do not display two lines for text field
Posted: Wed Nov 11, 2009 9:49 am
by Edward
Hi Leandro,
You are very welcome
Thank you.