2012年2月19日星期日

Disable printing / exporting

Anyone of you friends.. / MODERATORS

This is a hake of a challenge .. looks like Microsoft again left some "bug" in their SSRS..

Can anyone help me to know if I can "Hide" print icon on SSRS toolbar control .. ? or say

Remove TIFF /Excel from Export drop down list?

Sam

As far as the printing, here's how we do it (as the printing ActiveX control usually foobars on us, doesn't work except in IE under Windows and even then most of our clients are companies who lock down adding more activeX controls, it just makes more sense to tell them to do a Excel/PDF export...):

Add the ShowPrintButton property to the rsweb:Reportview tag in your .aspx source. Like:

<rsweb:ReportViewerHeight="450px"ID="ReportViewer1"runat="server"Width="100%"processingmode="Remote"SizeToReportContent="True"ShowPrintButton="false" />

I don't know how to limit the export options, though.

|||

http://servername/ReportServer?%2fReportFolder%2fReportName&Parameter1=&Parameter2=&rs%3aClearSession=true&rs%3aFormat=HTML4.0&rs%3aCommand=Render&rc%3aArea=Report&rc%3aLinkTarget=_top&rc%3aJavaScript=True&rc%3aToolbar=False

You could hide the toolbar completely such as in the example above.

没有评论:

发表评论