Click here to Skip to main content
15,885,633 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello all,


I have hide column in some condition it working fine nut when i export data that time this hidden column get display ...


Please suggest me..


I have applied solution that,
on that colunm Hidden property set expression as "=IIF((Globals!RenderFormat.Name = "CSV"),true,false)"

but its not worked...


please help me its urgent..
Posted

1 solution

You cannot hide or omit columns for the export, using expressions. This is because the expressions will only get evaluated in the report itself, not the export.

//a workaround would be to hide the columns by default and show all others using the expression.//

my apologies, that above statement made no sense. It seems what you will have to do is make a parameter that will show which columns to hide or display, then when the report runs just don't display any data in those columns. You can also change the value of the column heading based on these parameters.

The only other option is to create as many reports with the different column combinations then load the correct one dynamically.


ok miss desale...
 
Share this answer
 
Comments
madhuri@mumbai 9-Nov-12 8:02am    
thanks for reply,
but i have the problem when i export file in csv format from reportviewer,
is that the above which is applicable for that.
Devang Vaja 10-Nov-12 4:57am    
ya this is applicable for that, that'swhy i have written above madam

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900