Errors in the async merged report

Stimulsoft Reports.JS discussion
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Errors in the async merged report

Post 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.
Mateus Garrido Kern
Posts: 45
Joined: Wed Sep 04, 2019 5:19 pm
Location: Curitiba/PR (Brazil)

Re: Errors in the async merged report

Post 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.
Mateus Garrido Kern
Email: mateus.kern@digibyte.com.br
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Errors in the async merged report

Post 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.
Post Reply