如何在报表的文本框中显示文本 [英] How to fit text in text box in report
本文介绍了如何在报表的文本框中显示文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法在不进入第二行的情况下在其中放置文本框字段的文本。如果文本长度大于文本框大小,则应该简单地用"..."终止该行。并且不应该换行到下一行。我目前正在使用substring()来执行此操作,但很多时候它只会引入一个单词的前几个字母,而不是在空格字符处中断的正常自动换行为。
Is there any way to fit text of a textbox field inside it without going to the second line. In case text length is greater then the text box size, it should simply terminate the line with a "..." and should not wrap to the next line. I'm currently using a substring() to do this, but many times it only brings in only the first few letters of a word instead of the normal word-wrap behavior which breaks at space character.
推荐答案
您好waseem,
文本框有两个属性,CanGrow和CanShrink,使属性为"false",并进行编码显示"......"。
希望这会有所帮助
-Raja Sekhar K
Hi waseem,
There are two properties for text box, CanGrow and CanShrink, make both the properties to "false", and do your coding to display "...".
Hope this will help
-Raja Sekhar K
这篇关于如何在报表的文本框中显示文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文