Posted 12 October 2017, 8:19 pm ESTDear support,
I use OCX VSFlexGrid Component inside SAP Business One application.
When I use it on my development machine the evaluation popup license not compares anymore after activation. But when I deploy my application, the pop up still compares on the clients machines where application run.
My use of ActiveX is particular because I’ve to use it inside SAP Forms (not Windows Forms). SAP SDK gives an ActiveX “container” inside their components where you can use ActiveX. Here some lines of code:
Dim SBO_ACTIVEX_ITEM As SAPbouiCOM.ActiveX = SBO_FORM.Items.Item(UID_ITEM_ACX).Specific
SBO_ACTIVEX_ITEM.ClassID = "VSFlexGrid8.VSFlexGridN.1" '// UNICODE version of the VSFlexGrid 8.0 control with ADO/OLEDB data-binding.
Dim TREEVIEW As VSFlex8N.VSFlexGrid = SBO_ACTIVEX_ITEM.Object
'// From now I can use the ActiveX inside SAP Business One (SBO) Form
I’ve read the article: https://www.grapecity.com/en/blogs/troubleshooting-activex-licensing/ and I think I should use “Dynamically Adding the Controls” approach.
I’ve tried to use suggestions inside the article https://www.grapecity.com/en/blogs/embedding-license-key-for-activex-controls-created-at-run-time/ but I don’t know how to use the line “Licenses.Add("VSFlexGrid8.VSFlexGridADO.1?, "Type/paste your license key here")” inside a not Windows Form (Licenses.Add method doesn’t exists).
Any help would be appreciated.
Thanks in advance.