Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

adding break line to expression

I have an expression statement to display content 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!

like image 474
Masriyah Avatar asked Apr 24 '26 13:04

Masriyah


2 Answers

You can also use following :

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

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

like image 28
M4V3R1CK Avatar answered Apr 26 '26 07:04

M4V3R1CK



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!