Testing AR 2.0 - OCX problem

Posted by: wlhagan3 on 4 August 2017, 2:57 pm EST

  • Posted 4 August 2017, 2:57 pm EST

    I am in the process of testing AR 2.0 to see if I can get around this problem: http://www.datadynamics.com/forums/92068/ShowPost.aspx


    I am getting errors in design-time (VB 6.0) when placing the ocx on a report form.  (Run-time error '6': OverFlow error followed by Run-time error '440': Automation error.)  This chart control (ocx) works on a AR 1.0 report form and on VB 6.0 form without issue.


    This ocx was developed internally but I am at a loss on how to debug this issue.


    Ideas?


    Thanks.


    Robb

  • Replied 4 August 2017, 2:57 pm EST

    You can download the 2.4.1.1283 build and install that over your current trial version. This may help to resolve your issue. However, it may be that the OCX control you are using does not draw itself correctly to the report.


    Tim

  • Replied 4 August 2017, 2:57 pm EST

    Which build of ActiveReports 2 (COM) are you currently using? Does this problem occur with the latest build? You can download the latest build at http://www.datadynamics.com/forums/37/ShowForum.aspx.


    Also, are you able to add any other ActiveX controls or Ole Objects to the report?


    Tim

  • Replied 4 August 2017, 2:57 pm EST

    Tim-


    I select it from the list of ActiveX controls in the Insert ActiveX Control dialog window from within the AR 2.0 report designer.


    The control does not get added to the report correctly (after the errors occur).  The report designer shows an outline of an object but it is not the chart control.  The properites list only has 7 items listed (a subset of what should be there).  Example: Name, Height, Left, Tag, Top, Visible, Width are the only properties.


    From what I have been to determine from debugging so far is that the ScaleHeight of an internal component of the chart control is getting set to a huge value while trying to insert the control on the report form.  More than an Integer data type can handle.  But I have not determined why or where it is happening, or what is causing it to happen.


    As far as Wordpad goes, I can add the control but it does not display as it does in VB or AR 1.0.  It treats it as a package, I think.  I was able to save a .rtf document with the chart control in it.


    Thanks.


    Robb

  • Replied 4 August 2017, 2:57 pm EST

    Which build of ActiveReports 2 (COM) are you currently using? Does this problem occur with the latest build? You can download the latest build at http://www.datadynamics.com/forums/37/ShowForum.aspx.


    Also, are you able to add any other ActiveX controls or Ole Objects to the report?


    Tim

  • Replied 4 August 2017, 2:57 pm EST

    Tim-


    I am not sure what the build (How do you tell?) is but I downloaded the trial version of AR Standard Edition Evaluation about two weeks ago.


    I am able to add an ActiveX control (a different one that we developed) with out issue.


    Robb

  • Replied 4 August 2017, 2:57 pm EST

    Tim-


    I downloaded the suggested AR version with no change in behavior of the ocx.


    I would agree with you that the control is not drawing itself correctly on the report.  The question is why?  Again this control does not exhibit this behavior the an AR 1.0 report or on a VB 6.0 form.  I just cannot get handle on what is causing the ScaleHeight to be jacked up to 200,000+ when I am dropping the control on the report.  Also, the resulting outline of the control does not match the expected placement and size based on where I am dropping it.


    FYI - The control is written in VB 6.0.  ScaleMode is Twips.


    Robb

  • Replied 4 August 2017, 2:57 pm EST

    Robb,


    Please allow me a bit of time to investigate this. I will get back to you as soon as possible.


    In the meantime, would it be possible to send us a copy of this OCX control and a sample project where you are tyring to use it on an ActiveReport?


    Tim

  • Replied 4 August 2017, 2:57 pm EST

    Tim-


    Sure.  Where to?


    To test, I am just creating a new VB 6.0 ActiveX .dll project, adding a AR 2.0 report to the project and selecting the ActiveX control from the list in the Insert ActiveX Control dialog box.


    Robb

  • Replied 4 August 2017, 2:57 pm EST

    Robb,


    Please send all email correspondence regarding ActiveReports support to activereports.support@datadynamics.com. Please note information about your environment (build number of ActiveReports you are using, operating system, etc.), what you are trying to do, and the problem you are encountering. You should be able to zip up your project files, including OCX, and attach them to the email. Please include a small sample project that demonstrates this problem as well.


    Tim

Need extra support?

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

Learn More

Forum Channels