[英]How to make a specific letter of a word bold and underlined in ssrs?
I am trying to make the first letter of a word bold and underlined. 我试图将单词的首字母加粗并加下划线。 But I am having a hard time doing it.
但是我很难做到这一点。
eg S ample Result 如小号充足结果
Set Markup Type to HTML (Placeholder Properties, General), then create an expression. 将标记类型设置为HTML(占位符属性,常规),然后创建一个表达式。
Example: 例:
="<b><u>" & LEFT(Fields!Header.Value, 1) & "</u></b>" & MID(Fields!Header.Value, 2, LENGTH(Fields!Header.Value)-1)
Highlight the text of the textbox. 突出显示文本框的文本。 On the properties set the MarkupType to HTML
在属性上,将MarkupType设置为HTML
The expression on your textbox should look like the one below 文本框上的表达式应类似于以下表达式
="<b><u>"
& Left(Parameters!ReportParameter1.Value,1)
& "</u></b>"
& Mid(Parameters!ReportParameter1.Value, 2, Iif(Parameters!ReportParameter1.Value Is Nothing,0,Len(Parameters!ReportParameter1.Value)))
The Iif in the above expression checks for null values can be replaced with the maximum field character value. 上面表达式中的Iif检查是否有空值,可以用最大字段字符值代替。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.