love Computer science
love Computer science

Reputation: 1828

Is it possible to disable 'Print' and 'Export' buttons on Crystal Reports?

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

Answers (6)

livingstone k
livingstone k

Reputation: 1

using short cut key to take print out ,while you disable print button

Upvotes: -2

Ziad Adnan
Ziad Adnan

Reputation: 822

go to crystal reports viewer properties and set these settings to false in VS 2015 HasExportButton="False" HasPrintButton="False"

Upvotes: 1

Pedro Ramilo
Pedro Ramilo

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:

  • set the property "WindowControls=False" on the C.R. ActiveX control.

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

GotaloveCode
GotaloveCode

Reputation: 1034

CrystalReportViewer1.ShowPrintButton = False

Upvotes: 0

Husen
Husen

Reputation: 1

CrystalReportViewer1.HasPrintButton = false;

Upvotes: 0

Vladimir Tarasov
Vladimir Tarasov

Reputation: 631

Take a look at ReportViewer class properties ShowExportControls and ShowPrintButton. There're more properties to disable standard viewer UI controls.

Upvotes: 5

Related Questions