SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2012 Forums
 Analysis Server and Reporting Services (2012)
 ssrs 2012 export to comma delimited file
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jassie
Constraint Violating Yak Guru

308 Posts

Posted - 01/03/2014 :  12:08:17  Show Profile  Reply with Quote
In an SSRS 2008 R2 report, the users are going to export the data to: csv (comma delimited) and excel.

I am using the following to display if a column is visible or not:


=IIF(Mid(Globals!RenderFormat.Name,1,5)="EXCEL" AND First(Len(Fields!CustomerNumber.Value)) > 0,False,true).

I have set the DataElementOutput=Output for the textbox that displays the value. I have left DataElementOutput=Auto for the
textbox that contains the column header.

When exporting to csv (comma delimited) or excel, I basically want the column to be visible when there is data in the field
and the column not to be visible when there is no data.

The code works for excel but the code does not work for comma delimited.

Thus can you tell me what I can do so the column is not disaplyed when the data is exported to csv (comma delimited)?

visakh16
Very Important crosS Applying yaK Herder

India
52325 Posts

Posted - 01/04/2014 :  05:36:58  Show Profile  Reply with Quote
This looks same as
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=190580
Please dont cross post the same issue in multiple forums

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.04 seconds. Powered By: Snitz Forums 2000