Sunlight
Sunlight

Reputation: 57

SSRS CSV export - whole tablix ignored, only data from last page is exported

The report

The report consists of, in this order:

The problem

When the report is exported to CSV the only data is the metadata from inside the rectangle. I need the data from the tablix.

Additional details

Upvotes: 1

Views: 2006

Answers (1)

Daniel
Daniel

Reputation: 1364

SSRS treats XLSX vs CSV exports quite differently. XLSX export is a layout renderer, where SSRS tries to be smart and mimic the layout of the reports into Excel. CSV export, on the other hand, is just a data renderer and SSRS doesn't care how the page is laid out, it simply tries to export data.

There are several reasons why the data renderers of XML and CSV might actually omit elements in your report.

  1. Static Values - Values that are hardcoded and don't change from row to row will not get exported.
  2. Items that are controlled by conditional expressions (even if they evaluate to false and should show) will not be exported. One of MS's many "by design", "nice" features :(

This all said, there is a property on elements called "DataElementOutput" that controls whether the specific item should be visible in a CSV/XML data export. Can you try setting this to "Output" for your tablix and see if that forces it to be shown?

enter image description here

Upvotes: 1

Related Questions