Errors in the async merged report

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

Re: Errors in the async merged report

Post by HighAley » Tue Sep 15, 2020 6:06 am

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: 29
Joined: Wed Sep 04, 2019 5:19 pm
Location: Curitiba/PR (Brazil)

Re: Errors in the async merged report

Post by Mateus Garrido Kern » Mon Sep 21, 2020 4:59 pm

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: desenv5.digibyte@outlook.com
HighAley
Posts: 8368
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Errors in the async merged report

Post by HighAley » Thu Sep 24, 2020 7:27 am

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