How to insert page in a section report from another section report?

Posted by: steve_goa on 1 April 2023, 1:18 am EST

    • Post Options:
    • Link

    Posted 1 April 2023, 1:18 am EST

    Using:

    Active Reports v16.3.1 /

    NET v4.8.1 Winforms application /

    Visual Studio 2022

    I’m trying to add a new page to a section report document that has been loaded in code as described in the HOWTO code on your documentation page here:

    https://www.grapecity.com/activereportsnet/docs/versions/v16/online/insert-or-add-pages.html

    However, when I try the same code here, I get the error that “Pages” is not a member of Document.

    myRpt.Document.Pages.Insert(..

    Why is this happening and how to resolve it?

    Thanks in advance!

  • Posted 1 April 2023, 1:22 am EST

    I found the solution to the issue from the error hint in Visual Studio. I needed to add to the project references the following dll: GrapeCity.ActiveReports.Core.Document

    Problem solved!

  • Posted 2 April 2023, 7:30 pm EST

    Hi Steve,

    We’re glad you were able to resolve this issue!

    Regards,

    Anand

Need extra support?

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

Learn More

Forum Channels