11

When I hide columns in SSRS they still appear in the CSV export.

I have to hide columns, not the entire tablix.

This is what I have tried already: The filters in the tablix hide rows not columns. The DataElementOutput per column can not be set using an expression.

Internet Engineer
  • 2,514
  • 8
  • 41
  • 54

2 Answers2

9

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.

Registered User
  • 8,357
  • 8
  • 49
  • 65
0

There is a solution in the version of SRS 2008 R2, you need to perform a hide fields as follows:

=IIF(Globals!RenderFormat.Name="CSV", True, False)

means this part of the "Globals!RenderFormat.Name" is crucial

Tihomir Budic
  • 309
  • 4
  • 13
  • This piece of code is placed in the hidden property of field, and when the report is run, if he chooses format "CSV" output, this piece of code will hide the field. – Tihomir Budic Nov 24 '11 at 11:01