开发者

adding break line to expression

开发者 https://www.devze.com 2023-03-20 05:22 出处:网络
I have an expression statement to display 开发者_StackOverflowcontent for a text box for a reportviewer but went blank when trying to add a carriage return or a new line between the two expression. My

I have an expression statement to display 开发者_StackOverflowcontent for a text box for a reportviewer but went blank when trying to add a carriage return or a new line between the two expression. My expression as follows:

=Format(Fields!LastDateVisited.Value, "d")+ " "+Fields!LastVisitType.Value

Instead of the space i want to make it a new line. I tried "\n" but didn't work, any suggestions would be great. Thanks!


You can also use following :

= Fields!FirstField1.Value + System.Environment.NewLine + Fields!MyField2


I think that a end of line character should work: '\n'


in your placeholder properties (Expr page) change the markup type to html

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号