Solved

SSRS remove carriage returns

Posted on 2013-11-11
4
1,095 Views
Last Modified: 2013-11-15
Hi all,

I am trying to remove the carriage returns (annoying squares shown in the attachment) from my report.

Currently, I am trying to use the following expression to return the value:
=Replace(First(Fields!YourField.Value, "DataSource"),CHR(10),VbCrLf)

However, this is not working.

Can anyone please advise?

Thanks
Carriage-Returns.docx
0
Comment
Question by:FMabey
  • 2
4 Comments
 
LVL 5

Expert Comment

by:dannygonzalez09
ID: 39638918
Can you post some sample text from the source table.. i want to give it a try

you can use this as a reference , if you don't have it already

http://www.theasciicode.com.ar/ascii-control-characters/carriage-return-ascii-code-13.html
0
 
LVL 65

Accepted Solution

by:
Jim Horn earned 500 total points
ID: 39639643
Just a thought ...  If you're using stored procedures or views as the data source behind SSRS data sets, it would make more senese to 'scrub' CHAR(13) and CHAR(10)'s out in T-SQL using the REPLACE() function, then have to deal with them in SSRS.
0
 
LVL 3

Author Comment

by:FMabey
ID: 39650562
Hi Jimhorn,

I've done just that. Thanks!
0
 
LVL 65

Expert Comment

by:Jim Horn
ID: 39651012
Thanks for the grade.  Good luck with your project.  -Jim
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
when creating a subscription get error 1 46
Date Differences SSRS 3 67
Textboxes line spacing 6 40
sql 2012 cluster  SSRS cluster aware 2 29
Introduction: This article is aimed at report developers who are used to developing reports using relational databases and have gotten a first-time assignment to develop reports on OLAP cubes. It demonstrates how to build a report using SQL Ser…
It is helpful to note: This is a cosmetic update and is not required, but should help your reports look better for your boss.  This issue has manifested itself in SSRS version 3.0 is where I have seen this behavior in.  And this behavior is only see…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question