Solved

SSRS remove carriage returns

Posted on 2013-11-11
4
1,147 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 66

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 66

Expert Comment

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

Featured Post

Enroll in July's Course of the Month

July's Course of the Month is now available! Enroll to learn HTML5 and prepare for certification. It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

After much searching across the internet I have found that you could not set the name of the file you were attaching to dynamic report subscriptons in Microsoft Reporting Services. I did manage to find one article showing you how your could make a s…
This code started out as a fix for a customer that had incoming data that was hunderds of numbers and words long that was to fit in one column. The problem was that the customer did not want to split words or numbers when wrapping in the column. …
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

636 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