Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

ssrs 2012 csv issue Expand / Collapse
Posted Thursday, December 26, 2013 3:48 PM


Group: General Forum Members
Last Login: Yesterday @ 1:59 PM
Points: 481, Visits: 573
In an ssrs 2012 report, I want to be able to export all the data to a csv (comma delimited) file that only contains the detailed row information. I do not want to export any rows that contain header data information.

Right now the export contains header row information and detail row information. The header row information exists for the PDF exports.

To have the header row not exist on CSV exports, I have tried the following options on the tablix with the header row information with no success:

1. = iif(Mid(Globals!RenderFormat.Name,1,5)<>"EXCEL",false,true),

2. = iif(Mid(Globals!RenderFormat.Name,1,3)="PDF",false,true),

3. The textboxes that contain the column headers, the dataelelementoutput=auto and
the text boxes that contain the actual data, I set the dataelelementoutput=output.

Basically I need the tablix that contains the header information not to appear when the export is for a csv file.
However when the export is for the detail lines for the csv export, I need that tablix to show up.

Thus can you tell me and/or show me code on how to solve this problem?
Post #1526059
Posted Thursday, January 2, 2014 8:05 AM
SSChasing Mays

SSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing Mays

Group: General Forum Members
Last Login: Tuesday, February 2, 2016 1:39 PM
Points: 641, Visits: 2,283
I ran into the same problem as well with no success. What I ended up doing was messy.

I ended up using two tables one hidden one visible depending on the renderformat. Then I just put the columns i wanted in the table visible for export. I would have liked a cleaner solution but after so much jiggery-pokery I just wanted it done.
Post #1527128
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse