Please start any new threads on our new 
    site at https://forums.sqlteam.com.  We've got lots of great SQL Server
    experts to answer whatever question you can come up with.
    
        | 
                
                    | 
                            
                                | Author | Topic |  
                                    | jassieConstraint Violating Yak Guru
 
 
                                        332 Posts | 
                                            
                                            |  Posted - 2014-01-03 : 12:07:16 
 |  
                                            | Whenever I export an ssrs 2008 or ssrs 2012 report to comma delimited file, all columns are always displayed. I have code setup to hide the column when there is not data in the column.I am using the following code:=IIF(First(Len(Fields!CustomerNumber.Value)) > 0,False,true) I the column level visibility,I have also set the  DataElementOutput=Output for the textbox that displays the value.The above code works when I export the ssrs report to excel.Thus can you tell me what I can do to get the column not to be displayed when the file is exported to csv (comma delimited) file? |  |  
                                    | visakh16Very Important crosS Applying yaK Herder
 
 
                                    52326 Posts | 
                                        
                                          |  Posted - 2014-01-04 : 05:26:09 
 |  
                                          | what about this?=IIF(First(Len(Fields!CustomerNumber.Value)) > 0 Or Globals!RenderFormat.Name != "CSV",False,true) ------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs |  
                                          |  |  |  
                                    | visakh16Very Important crosS Applying yaK Herder
 
 
                                    52326 Posts | 
                                        
                                          |  Posted - 2014-01-04 : 05:36:06 
 |  
                                          | Also one more thing?Shouldnt you be setting property asDataElementOutput=NoOutput to make it not rendering for CSV format?------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs |  
                                          |  |  |  
                                |  |  |  |