Reputation: 1828
I have Finished Designing my first Crystal Report using ASP.NET, I am Providing user my own way to Print and Export report, now i need to Hide or atleast disable the default Buttons provided in Crystal reports, Is it possible to do? how?
Upvotes: 5
Views: 11023
Reputation: 1
using short cut key to take print out ,while you disable print button
Upvotes: -2
Reputation: 822
go to crystal reports viewer properties and set these settings to false in VS 2015 HasExportButton="False" HasPrintButton="False"
Upvotes: 1
Reputation: 189
If you are running an older version of Crystal Reports (such as 4.6 included in VB5/6) then this can be achieved in the following way:
Doing so also disables the ability to Export and - as a side effect - also hides the buttons to zoom in/out of the report.
I'm leaving this comment for reference purposes only as - by now - everyone should be moving away from this VB/CR version. Still, if like me, you are faced migrating or maintaining an older package this should do the trick.
Upvotes: 1
Reputation: 631
Take a look at ReportViewer class properties ShowExportControls
and ShowPrintButton
. There're more properties to disable standard viewer UI controls.
Upvotes: 5