Solved

SSRS Reports Rendering into CSV

Posted on 2014-02-05
5
1,132 Views
Last Modified: 2014-02-11
I have report with two columns curreny id,current Name and when I render into CSV format it  replaces space with "_". Is there any way can we remove "_".
Example: CSV report file have the following records

currency_id,currency_name
1,USD
2,GBP

I want to report output OF CSV like this

currency id,currency name
1,USD
2,GBP
0
Comment
Question by:SURESH0518
  • 2
5 Comments
 
LVL 37

Accepted Solution

by:
ValentinoV earned 250 total points
ID: 39838070
It's indeed not possible.  This is confirmed by the following: select one of your detail-level textboxes and type your label with spaces in the DataElementName property.  This property can be used to specify custom names for column headers when exporting to CSV.  You'll get the following message:

Property value is not valid.

Specify a valid name. The name cannot contain spaces, and it must begin with a letter followed by letters, numbers, or the underscore character (_).


To be honest, I'm not a big fan of spaces in CSV headers either.  If the underscore is such a big problem, perhaps you can use Pascal-case naming styles, like CurrencyID, CurrencyName, ... ?
0
 
LVL 100

Assisted Solution

by:mlmcc
mlmcc earned 250 total points
ID: 39838871
Another way to handle this is to write an application to read the CSV after it is created and replace the underscores with blanks.

There may even be WIndows utilities that can replace the underscores.

mlmcc
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 39842496
You really should have accepted valentinov's comment as the answer to your question or at least as an assisted answer.  He answered your question about how to do it in SSRS while my comment provided a way to accomplish what you wanted.

mlmcc
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Written by Valentino Vranken. Introduction: In a previous article (http://www.experts-exchange.com/articles/Microsoft/Development/MS-SQL-Server/MS-SQL_Reporting/Reporting-On-Data-From-Stored-Procedures-part-1.html) I announced that I would writ…
Have you ever had to extract data from a Microsoft SQL Server database and export it to an Excel file, but did not want to use a DTS package? The concept in this article is not new, but it is the answer and will also work on 64-bit SQL boxes.   …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

785 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