【问题标题】:How to Left align and right align two different expression in the same text box in RDLC reports?如何在 RDLC 报告的同一文本框中左对齐和右对齐两个不同的表达式?
【发布时间】:2019-11-29 12:21:32
【问题描述】:

平台:RDLC 报告 工具:Microsoft Visual Studio 2010

在 RDLC 报告中,有没有办法在同一个文本框中左右对齐两个不同的表达式,因为一个文本需要从文本框的左侧开始,另一个从文本框的右侧开始?

【问题讨论】:

  • 尝试文本框属性 -> 对齐 -> 水平 -> 表达式生成器 =iif(Fields!name.Value>1,"Left","Right")

标签: c# visual-studio c#-4.0 rdlc dynamic-rdlc-generation


【解决方案1】:

尝试关注

in RDLC designer textbox property -> alignment -> 
horizontal ->
expression builder 
=iif(Fields!name.Value= "check","Left","Right")

【讨论】:

  • 注意,对齐字符串区分大小写!示例:“中心”而不是“中心”:D
猜你喜欢
  • 2023-03-31
  • 1970-01-01
  • 2019-01-21
  • 2015-01-09
  • 1970-01-01
  • 1970-01-01
  • 2011-05-19
  • 2017-08-22
  • 1970-01-01
相关资源
最近更新 更多