Reporting Services - Hide Print Icon on Toolbar
Posted on 2007-12-04
Hello all -
reporting services 2005:
Assuming we have zero access to the production reporting server, is there a simple way to hide the print icon in the reporting services toolbar without having to hide the entire toolbar?
I found a solution where it can be hidden with a custom .css file, but that file must be placed on the report server (we cannot access the production report server directly)
I also found that the reportviewer control is supposed to have the following property:
ShowPrintButton = true/false;
But we are accessing the report viewer control as follows in our .aspx pages, and this property is not available in the code behind:
Referencing it like this:
<%@ Register TagPrefix="cc1" Namespace="Microsoft.Samples.ReportingServices" Assembly="ReportViewer" %>
and using it like this:
<cc1:ReportViewer id="RptViewer" runat="server" Width="100%" Height="100%" Toolbar="True" Parameters="true"></cc1:ReportViewer>
but in the code behind, RptViewer.xxxxxx has no property for ShowPrintButton
any ideas on how to hide the print button given the above description of our issue?