ActiveX Control (ComponentOne Chart) gives Expired message when showing Report

Posted by: mahe_adifo on 4 August 2017, 2:55 pm EST

  • Posted 4 August 2017, 2:55 pm EST

    Hi,


    We upgraded recently to the latest version of ActiveReports: ar2ProSP2.4.1.1283


    Now we have the following problem:
    We are using a report that has a 3rd party control on it (CompontentOne Chart 7.0 2D Control).
    Every time when we show a report that contains this control it shows an Expire-message.


    -- ComponentOne Chart 7.0 2D --


    The evaluation period will expire in 24 day(s)


    ------------------------------------------------


    This didn't happen before and is a of course a little tragedy.
    This happens at our costumers, on computers that have no license to include this control in their Visual Basic Applications.
    But they should be able to work with it.
    I guess that the control thinks somehow that he is in development-mode when that control is included in an Active Report. Do you have an idea why?


    Thanks in advance.


    Matt

  • Replied 4 August 2017, 2:55 pm EST

    Hello ,


    Unfortunately, i don't know how does work the licensing feature of ComponentOne controls.


    I recommend you to consider this problem with ComponenOne team.


    It would be helpful, if you will place the completed solution at the our forum.


     


    Sergey Romanov.

  • Replied 4 August 2017, 2:55 pm EST

    Hi,


     


    on the forum of Component One I found this solution, but this doesn't seem to work. What am I doing wrong?


     


    Thanks in advance


     


    http://helpcentral.componentone.com/cs/forums/150244/ShowPost.aspx


    Your OCX must be a licensed control as well. You can
    accept any request for a license, but must include the

    "Require license key"

    option in the OCX project properties. This is not a chart
    requirement, but rather a requirement of the Microsoft
    runtime licensing process.

    When loading a licensed control at runtime, it is necessary
    for the container (in your case, VB not your control) to load it using
    OleClassFactory2::CreateInstanceLic(), which among other
    things requires the runtime license of the control. Unless your
    control is also licensed, VB does not load your control using
    CreateInstanceLic() and the runtime license code of the Chart
    is never reached.

    So in general, the rule is if you are using licensed constituent
    controls, you must set your control up as a licensed control
    also.

    You can find additional information in the following
    Microsoft documentation.

    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon98/html/vbconlicensingissuesforolecontrols.asp
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon98/html/vbconcontrolsyoucanuseasconstituentcontrols.asp


    Hope this helps.


     

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels