views:

49

answers:

2

Hi,

I have a situation where I need to hide columns of the report when viewing but when printing or downloading as a file, those hidden columns need to be displayed. Hiding the columns is not an issue, its just that I cannot figure a way to display the hidden columns when printing/downloading.

I do not want to create 2 separate reports for this.

Thanks

+2  A: 

What I do in these situations is to create a parameter for the report that says something to the effect of "Display Hidden Columns?" or "Show Printable View?" and then wire up the Visibility property of the column to that parameter. Yes, they might have to run the report again, but it keeps you from having to do a separate report yourself.

Dave Markle
thanks for the reply
Tony
A: 

There is no in-built functionality to hide columns only when viewing the report in the browser. Reporting Services renders the report the same way, whether you then save or print the report is of no consequence.

The only way to achieve what you want is to either:

  • create a new report
  • (as mentioned by Dave) provide a parameter that controls hiding the columns

Regardless when you actually generate the report for print/save it will look identical on screen

codemonkeh