SSRS 2008 Hidden Columns Should NOT Export to CSV

时间秒杀一切 提交于 2019-12-21 07:38:53

问题


When I hide columns in SSRS they still appear in the CSV export.

I have to hide columns, not the entire tablix.

This is what I have tried already: The filters in the tablix hide rows not columns. The DataElementOutput per column can not be set using an expression.


回答1:


Format options such as expressions on visibility are ignored for CSV rendering methods. CSV rendering methods are essentially data flows, so you can suppress elements that you don't want to include in CSV files by changing the DataElementOutput from Auto, the default value, to NoOutput.




回答2:


There is a solution in the version of SRS 2008 R2, you need to perform a hide fields as follows:

=IIF(Globals!RenderFormat.Name="CSV", True, False)

means this part of the "Globals!RenderFormat.Name" is crucial



来源:https://stackoverflow.com/questions/6511512/ssrs-2008-hidden-columns-should-not-export-to-csv

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!