Page 2 of 2

Re: Errors in the async merged report

Posted: Tue Sep 15, 2020 6:06 am
by HighAley
Hello, Mateus.

The issue is the same. You are adding pages from the next report when the rendering of the first one is not finished.

Please, add a line of code to the each for statement that will log the report and page number.
You should see that they are being added in the wrong way.

And replace the next line

Code: Select all

reportMerge.renderAsync();


with

Code: Select all

reportMerge.isRendered = true;
Thank you.

Re: Errors in the async merged report

Posted: Mon Sep 21, 2020 4:59 pm
by Mateus Garrido Kern
Hello HighAley,

Unfortunately for me it didn't work, I replicated the reports that I would like to reuse so that it works the way I want it, it is kind of bad because when there is a change I have to modify it in many places, but it works better.

Thank you for your attention.

Re: Errors in the async merged report

Posted: Thu Sep 24, 2020 7:27 am
by HighAley
Hello, Mateus.

It means that there is something else wrong in your code.

Did you check the number of rendered pages?

Thank you.