Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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: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: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.
Without know which version you upgraded from nor if you are using QlikView or Qlik Sense please note that major changes to image management have been included with recent versions (since Feb. 2019 release) of NPrinting when connecting to Qlik Sense (see attached release notes for details).
Resize images from Qlik Sense connections
Qlik NPrinting supports the export of images from Qlik Sense connections with different dimensions than the
ones used in the report. For example, you can choose how much Qlik Sense chart data displays in a Qlik
NPrinting report image.
This feature is only available in Microsoft Office or HTML templates.
After upgrading Qlik NPrinting, you must run a metadata reload to see the new Data Displayed width and
height parameters under image properties.
For information on Qlik Sense (and QlikView) Image management tools see the following help file link.
The first step is to simply do a metadata reload for each NPrinting connection after upgrading if you haven't already done so in order to be able to work with the new sizing tools.
The new changes shouldn't be causing your images to explode to a larger size than expected. However if they are, you can use the image management tools to repair those that seem to be larger than expected.
If you feel you have encountered a bug due to the upgrade process, please do not hesitate to submit a support case so we can look into this for you in greater detail.
Hope this helps.
Dear Frank,
Many thanks your response.
1- I am using qlikview not qliksense.
2- we upgraded np from February 2018 SR1 to April 2019
3- We already done metadata refresh.
4- That link and pdf you provided didn't mention any relevant information.
5- The issue is:
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 stupid 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: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:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAUA
AAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO
9TXL0Y4OHwAAAABJRU5ErkJggg==" width="323" height="275" border="0" alt="CH1163" />
Notice how the height and width were overwritten by NP?
Thanks in advance for your help.
Which version of QlikView are you using? Is the QlikView Desktop running on the NPrinting server the same version that is running on your QlikView server?
In the following tests I performed, I am using QlikView 12.1 SR 4.
I found no differences in output between NPrinting Feb. 2019 SR 1 and April 2019 releases of NPrinting.
If you are using windows 10 to preview your reports, it's possible you are encountering an issue where your Windows OS scaling settings are set to other than 100 percent. See article following for details about this issue https://support.qlik.com/articles/000038615
Also as mentioned in my previous note and if you still feel this is an issue after addressing the points in the article above, I would recommend starting a support case with us if you feel there is a bug here. However based on my testing today, I could not reproduce the issue you are experiencing so a support case may be needed to investigate further.
Previewed with NP Designer February 2019 SR 1 NPrinting with QlikView Desktop and Server 12.1 SR 4
Previewed with NP Designer April 2019 NPrinting with QlikView Desktop and Server 12.1 SR 4
Hey Frank,
Thanks again.
The QlikView server and NPrinting Server are on the same machine. On the server we have:
QlikView Desktop: 11.20.12577.0 SR8 64 Bit.
QlikView Server: November 2018. (12.40.20000.0)
I will update QlikView desktop to the latest version to 12.30.20200.0 SR2, and try again.
Hey Frank,
As I mentioned in my previous response. I have updated the QlikView version on the server. The issue persists.
You don't mention in your images below what is the original object size. I am sure you don't understand the issue.
let's say the original object size in QlikView is 200 by 200, I gave it this size in QV. In NP email I want it to be just 100 by 100. So I specify the custom size I want in the code. But NP overrides that with the original size.
This was not the case with the old NP version.
Hopefully you get what I am saying.
Hey Frank,
The below issues seems to be the same.
It is quite crazy that Qlik has changed a behavior that was working well to such behavior. Qlik has very poor history of fixing things. QlikView has many issues yet the company dumped it totally and doesn't care anymore about making any improvements.
I will mention all of your comments to our management teams.
Thank you for you feedback.
Kind regards...
Hi,
In the html code insert:
style = "width:450px;height:330px"
instead of:
width="450" height="330"
Best Regards,
Ruggero