Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Congratulations to the new Qlik Luminary and Partner Ambassador class! Meet them here
cancel
Showing results for 
Search instead for 
Did you mean: 
aschmeelk
Creator
Creator

Can not get variable contents to show in Nprinting Report Template despite using $ expansion

I have struggled with this for a while. Having read the Nprinting docs and gone through the 'what to do when dollar sign expansion doesn't work' and it still appears to not be working. I have other reports built in Nprinting that work well, this is the first I've tried to use Qlik Sense Variables in.

Nprinting version: Qlik NPrinting May 2026 Version: 26.19.3.0

Qlik Sense Enterprise November 2025.

Scenario: I have several variables in my Qlik Sense App: vCSDReportName, vCSDPeriodStart, vCSDPeriodEnd.

3 Variable Input objects3 Variable Input objects

I have added them to my template as so:

3 variables in Template3 variables in Template

I have created a variable filter thusly:

variable selected and value set.variable selected and value set.

And yet when I run a preview of the report in design mode I get this:

Nothing comes across..Nothing comes across..

 I've read through this article: https://community.qlik.com/t5/Qlik-NPrinting/Setting-variable-in-Nprinting-report/td-p/2496221 several times and I simply don't understand what I am missing.

If anyone can shed light on my ignorance I'd greatly appreciate it!

Labels (2)
6 Replies
Chanty4u
MVP
MVP

Hi

Create 3 KPI/text objects in the Qlik Sense app whose expressions are simply:

=$(vCSDReportName)

=$(vCSDPeriodStart)

=$(vCSDPeriodEnd)

Then add those objects to the NPrinting connection and place the corresponding object fields in your template.

This is generally much more reliable than trying to make NPrinting resolve the variables directly.

aschmeelk
Creator
Creator
Author

Well, I'll give that a try.

Otto65
Contributor
Contributor

Check karo ki NPrinting connection mein variables enabled hain ya nahi — woh toggle hai.

Phir syntax check karo: $(vCSDReportName) use karo, case-sensitive hai.

Variable filter mein "Fixed Value" select karo.

Phir bhi na ho toh delete karke re-add karo variable ko.

 
 
 
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi @aschmeelk 

  1. This does not make sense - you are trying to set variable value to itself which is pointles - you could just call this variable in report
  2. ...Also even if you do this you still trying to evaluate value which you want to return as a report name string/text which in this instance should be wrapped with single quotes.
  3. Lastly - it looks like you are using variable inputs as well as on demand button for nprinting regeneration generation which definitely will not be working together as variables values from input fields are not passed to nprinting anyway as part of the state of the application when such report gets generated (as those are your temporary values within your session) - so that will not work.
  4. There is no way you can enter free text into variable input and then use that with NPrinting. Only values which are already set in the app are passed, or variables which are expressions evaluating to something based on field selections (which you would have to apply field filter to apply)

I just think the whole approach should be different whatever your goal is. 

Maybe try to explain what you are trying to achieve with this report and maybe whole approach should be very different

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.
aschmeelk
Creator
Creator
Author

Hi @Lech_Miszkiewicz 

I did not know this - 

  1. "Lastly - it looks like you are using variable inputs as well as on demand button for nprinting regeneration generation which definitely will not be working together as variables values from input fields are not passed to nprinting anyway as part of the state of the application when such report gets generated (as those are your temporary values within your session) - so that will not work."

My goal is to use the variables as 'place holders' in my template, so that on rendering via on-demand the values are displayed in the resulting Excel sheet report. If there is another way I would love to know how as admittedly my knowledge of Nprinting is limited at the moment.

Regards

Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi @aschmeelk 

You will not be able to use variable inputs. 

If the values you want to pass through can be predefined you may load them as a fields in an Island tables and use filter panes for people to select from.

There is no other way. 

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.