Hi
Can anyone help me to find, how we will get ClassID/ProgID for an Activex Control? Right now i am using Component One Studio TrueDBGrid Activex Control in my form. but it is showing two errors while executing.....
1) Invalid class string (Exception from HRESULT: 0x800401F3 (CO_E_CLASSSTRING))"}
2)Unable to cast COM object of type 'System.__ComObject' to class type 'C1.Win.C1TrueDBGrid.C1TrueDBGrid'. Instances of types that represent COM components cannot be cast to types that do not represent COM components; however they can be cast to interfaces as long as the underlying COM component supports QueryInterface calls for the IID of the interface.
I had referenced the Sample Specified in SAP and according to that way only, i had worked... but the following statement is populating error in case of me.....
oForm = pEve_Application.Forms.Item(FormUID)
oItem = oForm.Items.Add("TG", SAPbouiCOM.BoFormItemTypes.it_ACTIVE_X)
oItem.Left = 20
oItem.Top = 40
oItem.Width = 250
oItem.Height = 200
AcXGrid = oItem.Specific
'AcXGrid.ClassID = "C1TrueDBGrid."
upto this it's working, the rest of the two statements is populating the error...
AcXGrid.ClassID = "{D40E0A0B-5E68-4F61-B141-4EFCE4AC8802}"
oTrueGrid = CType(AcXGrid.Object, SAPbouiCOM.ActiveX)
Can anyone help me, how to cast the obejct as well as how to find the ClassID....
Thanking you in Advance....