Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

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

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Yesterday @ 3:57 PM
Points: 301, Visits: 343
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 02, 2014 8:05 AM
Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: Thursday, April 17, 2014 12:30 PM
Points: 572, Visits: 2,070
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