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

    <P>We upgraded recently to the latest version of ActiveReports: ar2ProSP2.4.1.1283<o:p></o:p></P>
    <P>Now we have the following problem:<BR>We are using a report that has a 3rd party control on it (CompontentOne Chart 7.0 2D Control).<BR>Every time when we show a report that contains this control it shows an Expire-message. <o:p></o:p></P>
    <P><SPAN>-- ComponentOne Chart 7.0 2D --</SPAN><SPAN><o:p></o:p></SPAN></P>
    <P><SPAN>The evaluation period will expire in 24 day(s)</SPAN><SPAN><o:p></o:p></SPAN></P>
    <P>This didn't happen before and is a of course a little tragedy.<BR>This happens at our costumers, on computers that have no license to include this control in their Visual Basic Applications.<BR>But they should be able to work with it. <BR>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?<o:p></o:p></P>
    <P>Thanks in advance.<o:p></o:p></P>
  • Replied 4 August 2017, 2:55 pm EST

    <P>Hello ,</P>
    <P>Unfortunately, i don't know how does work the licensing feature of ComponentOne controls.</P>
    <P>I recommend you to consider this problem with ComponenOne team.</P>
    <P>It would be helpful, if you will place the completed solution at the our forum.</P>
    <P> </P>
    <P>Sergey Romanov.</P>
  • Replied 4 August 2017, 2:55 pm EST

    <P> </P>
    <P>on the forum of Component One I found this solution, but this doesn't seem to work. What am I doing wrong?</P>
    <P> </P>
    <P>Thanks in advance</P>
    <P> </P>
    <P><A href=""></A></P>
    <P>Your OCX must be a licensed control as well. You can<BR>accept any request for a license, but must include the<BR><BR>"Require license key"<BR><BR>option in the OCX project properties. This is not a chart<BR>requirement, but rather a requirement of the Microsoft<BR>runtime licensing process.<BR><BR>When loading a licensed control at runtime, it is necessary<BR>for the container (in your case, VB not your control) to load it using<BR>OleClassFactory2::CreateInstanceLic(), which among other<BR>things requires the runtime license of the control. Unless your<BR>control is also licensed, VB does not load your control using<BR>CreateInstanceLic() and the runtime license code of the Chart<BR>is never reached.<BR><BR>So in general, the rule is if you are using licensed constituent<BR>controls, you must set your control up as a licensed control<BR>also.<BR><BR>You can find additional information in the following<BR>Microsoft documentation.<BR><BR><BR><BR><BR><BR>Hope this helps.<BR></P>
    <P> </P>
Need extra support?

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

Learn More

Forum Channels