Groups | Blog | Home
all groups > sql server reporting services > november 2005 >

sql server reporting services : Hiding PRINT and EXPORT buttons/links



Sammy
11/8/2005 2:25:09 PM
Is there a way to hide the PRINT and Export buttons of the Toolbar? I still
Sammy
11/9/2005 7:54:07 AM
I have figured out you have to use the stylesheet.

[quoted text, click to view]
capricorn
12/8/2005 7:52:04 AM
I have the same exact issue. Can you give me more detail about what you did
with the stylesheet? Thanks.
--
-RB
:)


[quoted text, click to view]
Sammy
12/8/2005 8:42:02 AM
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.


[quoted text, click to view]
AddThis Social Bookmark Button