Friday, February 24, 2012

Hiding PRINT and EXPORT buttons/links

Is there a way to hide the PRINT and Export buttons of the Toolbar? I still
want to show page navigation etc.I have figured out you have to use the stylesheet.
"Sammy" wrote:
> Is there a way to hide the PRINT and Export buttons of the Toolbar? I still
> want to show page navigation etc.|||I have the same exact issue. Can you give me more detail about what you did
with the stylesheet? Thanks.
--
-RB
:)
"Sammy" wrote:
> I have figured out you have to use the stylesheet.
> "Sammy" wrote:
> > Is there a way to hide the PRINT and Export buttons of the Toolbar? I still
> > want to show page navigation etc.|||if you followed the default installation, there should be a FOLDER called
Styles in the directory
C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportServer
Look for HtmlViewer.css. Make a copy before you continue. Change the
display property of the relevant items to "none"
eg
.ToolbarExport
{
display: none;
}
.ToolbarPrint
{
display: none;
}
Save it as a new file eg MyViewer.css
To access the report thru a link include
rc:StyleSheet=MyViewer (NOTE there is no css)
To Deploy:
be sure you include the new css you folder and Deploy it if you are finally
running from a deployment site. It will (should) work from your development
environment if you don't include it in your project.
"capricorn" wrote:
> I have the same exact issue. Can you give me more detail about what you did
> with the stylesheet? Thanks.
> --
> -RB
> :)
>
> "Sammy" wrote:
> > I have figured out you have to use the stylesheet.
> >
> > "Sammy" wrote:
> >
> > > Is there a way to hide the PRINT and Export buttons of the Toolbar? I still
> > > want to show page navigation etc.

No comments:

Post a Comment