is Active reports PDF export thread safe?

Posted by: rakke2007 on 6 December 2017, 6:12 pm EST

  • Posted 6 December 2017, 6:12 pm EST

    I am facing an issue while working on Active reports 6.

    We have built a C# component to generate PDF reports using active report designers.

    Now to generate report for bulk data we are using for loop for generation which is working fine as required. Here comes an requirement to improve performance of report generation for bulk records, so we have implemented multi threading concept in C# and started generation of reports here comes the problem. After generating few reports (say 200 records out of 1000) in threading model we are not getting any response and process switches to deadlock state.

    can someone help us out of this?? is something wrong with our design??

    Thanks in advance,
    Ram
  • Marked as Answer

    Replied 7 December 2017, 4:26 pm EST

    Hello Ram,

    I am assuming you are using PDF Export method inside loop to generate PDF reports.
    Yes, PdfExport's Export method is thread safe and can be called from multiple threads concurrently. Also, there aren't locks in PDF export. Possibly you have more threads than available CPU cores, and it is simply having to do lots of switching.
    Can you share the code snippet where you're generating the PDF reports from multiple threads? It'll be really helpful.

    Thanks,
    Ruchir Agarwal
Need extra support?

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

Learn More

Forum Channels