Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
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: 
Edge
Creator
Creator

NPrinting overrides images sizes in HTML Report

Hello all,

We have NP April 2019. we upgraded recently from Feb 2018. It overrides the image sizes when generating reports. See below example:

In the old version in NP when I add a chart code into an html template like the below:

<img src="%%CH1163%%" width="323" height="275" border="0" alt="CH1163" />

NP will replace %%CH1163%% with the image base 64 string and leave everything else intact. The new NP replaces %%CH1163%% with the image base 64 string and replaces height and width properties with its own values. 

so I get something like the below:

<img src="data&colon;image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAUA
AAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO
9TXL0Y4OHwAAAABJRU5ErkJggg==" width="450" height="330" border="0" alt="CH1163" />

whereas what I used to get before was:

<img src="data&colon;image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAUA
AAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO
9TXL0Y4OHwAAAABJRU5ErkJggg==" width="323" height="275" border="0" alt="CH1163" />

Could you please help?

Note: this question was edited to give a clearer idea of the issue.

Labels (2)
11 Replies
Edge
Creator
Creator
Author

That doesn't work in all email clients.

Edge
Creator
Creator
Author

Hello,

Sorry for late reply. Upon removing the slash it started working again, I came to know of that before your message. That's why I didn't respond earlier. But thanks for your help. /> is the standard is for HTML5.

 

Also I added all my charts inside containers, because sometimes when NPrinting scales them. It used to eat the text and part of the chart. But when they are inside containers they are scaled normally.