Click here to Skip to main content
15,915,703 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When exporting the ssrs report is it possible to export only selected columns data should be exported into the excel or any format instead of all columns? Please advise.

What I have tried:

I searched for the options to hide the columns at the time of export.Not found any clue.
Posted
Updated 5-Apr-16 18:28pm
Comments
CHill60 2-Apr-16 12:51pm    
Why not just export the data directly from the table instead of putting it into a report first?
Member 10227147 4-Apr-16 3:35am    
yes we can export directly from table but we need it as dynamically in report as a feature. Please suggest if any clues.
CHill60 4-Apr-16 9:50am    
But you don't want all the data in the report going to excel? Have the report showing all of it but also have an export to excel
Member 10227147 5-Apr-16 8:01am    
I need to show all the column data but after exported the data to excel only few columns should show. Please let us know if my exlanation is not clear.
CHill60 5-Apr-16 8:23am    
Your explanation is not clear.
As far as I can tell you want the report to show everything but the excel data to only contain some of the columns.

Format options such as expressions on visibility are ignored for CSV rendering methods. CSV rendering methods are essentially data flows, so you can suppress elements that you don't want to include in CSV files by changing the DataElementOutput from Auto, the default value, to NoOutput.

https://blogs.msdn.microsoft.com/bimusings/2007/02/07/reporting-services-why-arent-all-my-report-columns-exporting-to-csv-andor-xml/
 
Share this answer
 
hello try this condition

=IIF(Globals!RenderFormat.Name = "EXCEL" or Globals!RenderFormat.Name = "CSV",false,true)
 
Share this answer
 
Comments
Member 10227147 4-Apr-16 3:05am    
Thanks for the reply. I have tried the =IIF(Globals!RenderFormat.Name = "EXCEL" or Globals!RenderFormat.Name = "CSV",false,true) condition it is hiding the data when report runs and showing the data at the time of export. But i need to hide the column data at the time of export. please advise.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900