C1FlexReport Concatenate or Merge Multiple Reports

Posted by: jnash on 26 April 2021, 1:33 am EST

  • Posted 26 April 2021, 1:33 am EST

    Hello,

    Is there currently a recommended way to merge or concatenate two or more C1FlexReports. Reports will use the same page size and orientation (letter, portrait). I would like to load and generate distinct reports as needed but ultimately merge the results into a single final report. This would ultimately be exported/filtered out to a PDF and written to disk or converted to a memory stream and sent as a response to a web client.

    I was unable to find a Forum discussion of something like this so any links or suggestions would be greatly appreciated.

    Thanks
  • Replied 26 April 2021, 3:44 pm EST

    Hi,

    In order to achieve this, you can obtain the images for each report's pages using the GetPageImage method:
    https://www.grapecity.com/componentone/docs/win/online-flexreport/C1.Win.FlexReport.4.5.2~C1.Win.FlexReport.C1FlexReport~GetPageImage.html
    Then you will need to add these images to a new report using the ImageField.
    Please refer to the sample attached.

    You can also refer to the forum post: https://www.grapecity.com/forums/winforms-edition/merging-multiple-flexrepor

    Regards.
    Avnish

    MergeFlexReport.zip
  • Marked as Answer

    Replied 26 April 2021, 10:18 pm EST

    Thank you. This seems more complex and resource intensive than I had hoped but at least there is a way to proceed.

    Would ActiveReport provide this functionality in a more straightforward way or would it also require a similar approach?

    Thanks
  • Replied 27 April 2021, 3:55 pm EST

    Hello,

    It is directly possible with ActiveReports. You can refer to the following link:

    For Page/Rdl Report:
    https://www.grapecity.com/activereportsnet/docs/v15/online/merge-multiple-reports.html

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

    To know more about the difference of Page, RDL and Section report, you can refer to the following link:
    https://www.grapecity.com/activereportsnet/docs/v15/online/reporttypes.html

    Please feel free to revert if you face any issue, I would be more than happy to help you.

    Thanks,
    Mohit
Need extra support?

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

Learn More

Forum Channels