无法在RDLC报告的第一行插入额外空格

时间:2013-06-04 14:04:23

标签: .net report rdlc

我正在使用Microsoft报告(RDLC)进行报告的项目中工作。我可以通过设置MarkupType = HTML来使用html格式化报表中的文本,但有一点是我无法实现的。

我的客户希望每个段落的第一行都应该以一些额外的空间开头,最好是一个TAB。像这样:

      This is first line of the paragraph, and 
this is the second line of the same paragraph.
these are few more line of the same paragraph.
You might have noticed that the first line 
starts with some space, while others donot!!

我已经google了很多,发现chr(32)也没有解决问题。和& NBSP;给出了“实体nbsp未定义”的编译时错误

如果有人能告诉我这个问题的可行方法(最好是解决方案!),我真的很感激。

1 个答案:

答案 0 :(得分:1)

我最近遇到了同样的问题,使用了一个适合我的表达式:

="     This is first line of the paragraph, and" & System.Environment.NewLine &  "this is the second line of the same paragraph."