cancel
Showing results for 
Search instead for 
Did you mean: 

Disabling a toolbar button in Embedded Designer Controls throws Exception -

Former Member
0 Kudos

Reference:

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

We are using Embedded Crystal Designer Control in our C# .NET Windows Form. To disable the "Insert Picture" toolbar button on the Crystal Designer Control, used the following code:

CRDesignerCtrl1.ShowToolbarButton(CRDESIGNERCTRLLib11_5.CRToolbarButtonId.crTBInsertPicture, false);

When I run our application and go to the form having the Embedded Crystal Designer Control, I am getting the following Exception:

Source: Interop.CRDESIGNERCTRLLib11_5

Message: Error HRESULT E_FAIL has been returned from a call to a COM component.

Does anyone have any suggestions to rectify this problem?

Thanks & Regards,

Vennila

View Entire Topic
former_member183750
Active Contributor
0 Kudos

As the note says, it is specific to VB 6. And actually, the Embedded Designer Controls were only designed for VB 6. In addition, the RDC (craxdrt.dll) is not tested and thus not supported in .NET. Some time back, if you could prove the same issue in a supported environment we may have been able to get a fix for you. However the life cycle stage the RDC is in now does not allow for any fixes, period.

I would thus recommend not using the RDC in .NET and moving on to the CR assemblies for .NET.

Ludek