Fam*_* th 3 rdlc rdl reporting-services
我的文本框有一些像这样的属性
txtBox.Cangrow = False
txtBox.CanShrink = False
Uncheck allow height to increase and decrease.
Run Code Online (Sandbox Code Playgroud)
此文本框用于从数据集接收的显示值.有时数据太长.所以我需要知道如何自动减小字体大小以匹配文本框的宽度?
您需要手动确定一定长度的针刺所需的字体大小.然后,您可以将表达式放在Font- > FontSize属性中,如下所示
=iif(len(Fields!myString.Value) > 20, "8pt", "10pt")
Run Code Online (Sandbox Code Playgroud)
无法动态缩小文本以适合文本框.
| 归档时间: |
|
| 查看次数: |
6295 次 |
| 最近记录: |