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: 
hugmarcel
Specialist
Specialist

NPrinting closes connection while Macro Task is running

Hi

we use Version 16.9.0 SR9.

We use a Macro Task in order to export chart images to a a file. This works fine, but sometimes Nprinting unexpectedly closes the connection, making the macro and export fail. Is there a parameter or similar in the NPrinting settings, in order to suppress this when running Macro Jobs?

Thank you and regards! Marcel

Labels (1)
1 Solution

Accepted Solutions
Ruggero_Piccoli
Support
Support

Hi,

There is not a similar parameters, but I suggest you to create a QlikView Entity Report to export QlikView charts as images. After you can remove the macro from the qvw.

QlikView macros are not supported in Qlik NPrinting 19 and soon the 16 will reach the end of life.  

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.

View solution in original post

4 Replies
Ruggero_Piccoli
Support
Support

Hi,

There is not a similar parameters, but I suggest you to create a QlikView Entity Report to export QlikView charts as images. After you can remove the macro from the qvw.

QlikView macros are not supported in Qlik NPrinting 19 and soon the 16 will reach the end of life.  

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.
hugmarcel
Specialist
Specialist
Author

Hi

We checked the logs and found that the connection is closed, because NPrinting considers macro execution as being finished:

-> "Message Terminate Task: Makro: ...
> "Message This task took 4 seconds to execute"

But in fact, the macro in QV is still running and not yet finished (the macro logs its command into a logfile).

So why considers Nprinting the macro execution as finished if this is in fact not the case? And how to prevent this?

Thank you! Marce

Ruggero_Piccoli
Support
Support

Hi,

Try to remove the flag to the option "Close connection when task ends".

If it doesn't work, place share some screenshots so we can see how it is configured.

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.
hugmarcel
Specialist
Specialist
Author

Hi

The ExportBitmapToFile function crashed after ca. 40 exports, therefore, we switched to use NPrinting Excel HTML Report to produce the image file.

Thank you and regards!

Marcel