Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / Services / Reporting Services / July 2008

Tip: Looking for answers? Try searching our database.

how to preserve carriage returns and new line feeds?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
SAM - 12 Jul 2008 14:59 GMT
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?
Parker - 13 Jul 2008 13:46 GMT
Did you use CHR(13) + CHR(10)?

Sometimes the order can be important, and you need to use both
ben.koolstra@besam.nl - 13 Jul 2008 18:46 GMT
> 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))
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.