I am reading in ntext values in a textbox using SSRS 2005. When previewing in
BIDS, the carriage returns are maintained but when deployed to the server and
viewing the results in the browser, the carriage returns are ignored.
Does anyone know how to preserve carriage returns in SSRS 2005? I have tried
using chr() but nothing changes. Someone suggested creating a function to
read in the values then re-rendering into HTML to see if it will preserve the
formatting.
Does anyone have any suggestions to resolve this issue?
Did you use CHR(13) + CHR(10)?
Sometimes the order can be important, and you need to use both
> I am reading in ntext values in a textbox using SSRS 2005. When previewing in
> BIDS, the carriage returns are maintained but when deployed to the server and
[quoted text clipped - 6 lines]
>
> Does anyone have any suggestions to resolve this issue?
I had the same issue and it was solved by replacing CHR(10) with CHR
(13) + CHR(10)
replace(text,char(10),char(13)+char(10))
carolus.holman - 21 Jul 2008 21:06 GMT
I used this, the other solution weren't working:
=REPLACE(Fields!YourFieldHere.Value,CHR(10), vbcrlf)
> > I am reading in ntext values in a textbox using SSRS 2005. When previewing in
> > BIDS, the carriage returns are maintained but when deployed to the server and
[quoted text clipped - 11 lines]
>
> replace(text,char(10),char(13)+char(10))