SAP Knowledge Base Article - Public

1220368 - How to disable/enable the toolbar buttons on the Embeddable Designer control


The Crystal Reports Embeddable Designer control is a Visual Basic 6 ActiveX control that allows users to modify and format reports at run time.


How do you disable or enable certain toolbar buttons on the Crystal Reports Embeddable Designer control?


The control provides a public method called 'ShowToolbarButton' which takes 2 arguments:

" 'CRToolbarButtonId' enumeration a specific constant identifier for a button.

" Boolean a true or false value indicating that the button is enabled or disabled, respectively.

For example, the following code disables the 'Save' button for the Embeddable Designer control named 'designer':

designer.ShowToolbarButton (CRToolbarButtonId.crTBSaveReport, False)



"Use the Visual Basic object browser to find other toolbar button constant identifiers."

If you are using Crystal Reports 10, apply a hot fix to enable this feature as per Note 1218005.



RDC EMBEDDED DESIGNER TOOL BAR HIDE SHOW BUTTON Crystal Reports XI Release 2 RDC Embeddable Designer Hiding Buttons , c2019414 , KBA , BI-RA-CR , Crystal Reports designer or Business View Manager , Problem


SAP Crystal Reports XI ; SAP Crystal Reports XI R2