Skip to main content
Announcements
Defect acknowledgement with Nprinting Engine May 2022 SR2, please READ HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
gduflot_mdm
Contributor
Contributor

Qlik NPrinting : object rendering time

Hello,

We would like to create a report (PPTX) in which we can render some images. For that, in Qlik Sense, we use the extension MGO Image Grid v3 (using the single image functionality)

However, when used with QlikNPrinting, it doesn't wait until the images are rendered, but only until the calculation made to get the image url is done. I know QlikNPrinting is not supporting well extensions right now, but I would like if there is any kind of workaround to make it wait a few second before to capture the sheet (for example by editing the extension and making it "sleep" for a few seconds ?)

Thank you in advance for your help

Labels (2)
1 Solution

Accepted Solutions
gduflot_mdm
Contributor
Contributor
Author

Hello, after some tests it seems that adding 

return new Promise(function(resolve,reject) {
    setTimeout(function(){ resolve(); }, 5000);
});

at the end of the paint function is doing the job. Obviously, it delays the Qlik NPrinting job (but that's intended) and the 5000ms value is subjective to give QlikNPrinting enough time to render the image, but at least it seems to work now

View solution in original post

2 Replies
Ruggero_Piccoli
Support
Support

Hi,

Qlik NPrinting supports Qlik Sense extensions that fill some requirements listed in https://help.qlik.com/en-US/nprinting/June2020/Content/NPrinting/MultiDocument/Using-Sense-third-par.... So be sure that the extension you are using is compliant with them.

We don't have a list of supported exstensions.

Maybe also this article could help you https://help.qlik.com/en-US/nprinting/June2020/Content/NPrinting/Troubleshooting/Qlik-Sense-third-pa....

Best Regards,

Ruggero



Best Regards,
Ruggero
---------------------------------------------
When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads with a LIKE if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads with LIKEs if you feel additional info is useful to others.
gduflot_mdm
Contributor
Contributor
Author

Hello, after some tests it seems that adding 

return new Promise(function(resolve,reject) {
    setTimeout(function(){ resolve(); }, 5000);
});

at the end of the paint function is doing the job. Obviously, it delays the Qlik NPrinting job (but that's intended) and the 5000ms value is subjective to give QlikNPrinting enough time to render the image, but at least it seems to work now