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: 
markiskander
Contributor II
Contributor II

NPrinting - Developer ribbon in Excel / Template Editor

Is there a way to show the Developer ribbon in Excel / Designer / Template Editor?  Looking to use VBA to develop one of our reports.

Labels (1)
1 Solution

Accepted Solutions
David_Friend
Support
Support

@markiskander cool please do me a favor and click on 'Accept As Solution' thanks!

View solution in original post

7 Replies
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Regardless of the fact if can or cannot have developer ribbon in NPrinting… why dont you develop your vb script, store template file as xlsm and the use it as a template when creating report?

that is the typical way you would do things in NPrinting anyway due to fact that in order to have xlsm template you will need to load it first

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.
Ruggero_Piccoli
Support
Support

Hi,

Please remember to add the label with the correct version of Qlik NPrinting you are using. 

You have to follow the instructions posted by @Lech_Miszkiewicz because creating an .xlsm file and upload it as a custom template is the only way to create an .xlsm template otherwise it will be created as .xlsx and it cannot include VBA code. 

Also, note that macros are only copied to the generated templates and never executed by Qlik NPrinting.

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.
markiskander
Contributor II
Contributor II
Author

Thanks Lech_Miszkiewicz and Ruggero.  I'm obviously new to Qlik, apologies for the beginner questions.

 

Ruggero - you mention that macros are only copied to the generated templates and never executed by Qlik NPrinting.  We intend to have these reports auto-emailed to managers, ideally in their...'post-macro-executed' state.  Pretty sure this is a dumb question, but how can we do this if the macros can't be executed prior to the reports being emailed out?   How do we get the macros to execute prior to them being emailed/received?

Thanks again for the responses, much appreciated.

David_Friend
Support
Support

@markiskander what version of NPrinting and version of QlikSense?

Also watch this youtube video, it may help: https://www.youtube.com/watch?v=VIq_MtTpBL8

markiskander
Contributor II
Contributor II
Author

We're on QlikSenseServer 14.54.2, and NPrinting Version 21.14.7.0

And now i'm somehow seeing the Developer tab.

The video is just what i needed - many thanks.

David_Friend
Support
Support

@markiskander cool please do me a favor and click on 'Accept As Solution' thanks!

Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi @markiskander 

No, you will not have these reports auto-emailed to managers in their...'post-macro-executed' state as NPrinting will not execute macros-full stop. Your macro can only be triggered by end user (manager) opening the document and this is design of NPrinting at the moment. 

Obviously you can workaround it by producing reports to a folder and having a batch process triggering your macros and saving document then distributing it outside of NPrinting. This process is obviously much more convoluted and hard to do and is having nothing to do with NPrinting anymore.

Question really is: why do you need to have a macro in your report in first place. Maybe there is a solution which will not require it?

cheers

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.