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
Solved

SSRS Reports Rendering into CSV

Posted on 2014-02-05
5
1,153 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

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…
A recent question popped up and the discussion heated up regarding updating a COMMENTS (TXT) field in a table using SSRS. http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/MS-SQL_Reporting/Q_27475269.html?cid=1572#a37227028 (htt…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

856 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