Click here to Skip to main content
15,888,006 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

i am using visual studio 10 to create SSRS report. in this, i have a textbox which is having an Expr value i.e. value = First(Fields!n1.value, "GetAll"), where n1.value contains multiple lines of text i.e.

Test
Test
Test


But when viewing report, it shows like this:-
TestTestTest.

I want the above value in multi line. how can i do this?

thanks very much.

Tamal Maiti
Posted

1 solution

It depends how the line-breaks are encoded within the source data.

Line-breaks encoded as a carriage-return (ASCII code 13) followed by a line-feed (ASCII code 10) will display as expected.

For anything else, you'll need to replace the line break with vbCrLf:
VB.NET
=Replace(First(Fields!n1.Value, "GetAll"), Chr(13), vbCrLf)
 
Share this answer
 
Comments
Tamal Maiti 19-May-15 13:21pm    
Thanks for the solution Richard. But I tried it, its not working in my case.
Richard Deeming 19-May-15 13:25pm    
You'll need to look at the raw data in a hex editor to see how the line breaks are encoded.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900