Controls can't be added or removed after report starts running

Posted by: ilia on 27 August 2018, 2:21 am EST

    • Post Options:
    • Link

    Posted 27 August 2018, 2:21 am EST

    I use AR12.SectionReport.

    I some case i need to add controls after report starts.

    I this case error “Controls can’t be added or removed after report starts running” occurs in AR12 and it works in AR2 COM without problems.

  • Posted 27 August 2018, 7:28 pm EST

    Hello Ilia,

    AR12 and AR2 Com are very different. you can’t compare both of them as they are made on different technologies. Could you please explain your requirement so that I can help you to achieve the same.

    Thanks,

  • Posted 27 August 2018, 8:20 pm EST

    Simple sample attached.

    RunTimeAddCtl.zip

  • Posted 27 August 2018, 8:24 pm EST

    Ilia,

    Thanks for the application. I am also able to replicate the behavior at my end.

    However, Could you please share your actual requirement so that I can help you to achieve the same without adding the control at runtime.

    Thanks,

  • Posted 29 August 2018, 3:03 pm EST

  • Posted 29 August 2018, 8:08 pm EST

    Hello Ilia,

    It is very difficult to understand the requirement though analyze the code. Could you please explain your requirement in simple term.

    Thanks,

  • Posted 29 August 2018, 8:53 pm EST

    Ilia,

    You can also add the hidden control at the report start and make it visible on the needed pages.

    Thanks,

  • Posted 29 August 2018, 9:04 pm EST

    The requirement is to add ArControl after report starts running in the very difficult code (depending on the runtime parameters), that works in AR2 COM.

  • Posted 29 August 2018, 9:09 pm EST

    Hello Ilia,

    There is a workaround for this, you can add the hidden control at the report start and make it visible on the needed pages. Is this acceptable to you?

    Thanks,

  • Posted 29 August 2018, 11:16 pm EST

    To add hidden controls for all runtime cases may be very difficult.

  • Posted 3 September 2018, 12:41 am EST

    Hello Ilia,

    I have escalated your issue to our development team and will inform you once I get any information from them.

    Thanks

  • Posted 6 September 2018, 10:02 pm EST

    Hello Ilia,

    Could you use the “DrawText” feature of AR as a workaround. Please refer to the following link:

    http://help.grapecity.com/activereports/webhelp/AR12/webframe.html#GrapeCity.ActiveReports.Document.v12~GrapeCity.ActiveReports.Document.Section.Page~DrawText.html

    Thanks,

  • Posted 16 September 2018, 7:08 pm EST

    Yes, I can use the 'DrawCircle" as a workaround.

  • Posted 16 September 2018, 8:38 pm EST

    Ilia,

    I am glad that workaround is found helpful for you. if any issue occurs further, Please feel free to revert.

    Thanks,

Need extra support?

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

Learn More

Forum Channels