Programmatically copy or split section report

Posted by: joshb on 4 November 2021, 12:02 am EST

  • Posted 4 November 2021, 12:02 am EST

    Hello, I’m trying to accomplish the following:

    • print preview a report with multiple pages (eg. 4 pages)
    • split the report into multiple previews (eg. pages 1-2 in one preview, pages 3-4 in another)

    Is there any way to copy a section report, and then modify the pages?

  • Posted 7 November 2021, 4:45 pm EST

    Hello,

    You can refer to the following link:

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

    Thanks,

    Mohit

  • Posted 7 November 2021, 11:13 pm EST

    I’m unable to use that method as I’m passing in a generic SectionReport object to be split, so I can’t generate two instances and run them.

    Maybe I’m asking the wrong question:

    Is there any way to deep copy a report?

    Is there any way to set the viewer to only display certain pages?

    Thanks,

    joshb

  • Posted 17 November 2021, 7:14 pm EST

    Hello,

    You can create section document object and add certain pages in that object from your report. And preview the section document in your Viewer.

    Am I missing something?

    Thanks,

    Mohit

Need extra support?

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

Learn More

Forum Channels