Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT

How to resize images in NPrinting HTML report

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
Sonja_Bauernfeind
Digital Support
Digital Support

How to resize images in NPrinting HTML report

Last Update:

Jun 9, 2021 7:28:05 AM

Updated By:

Sonja_Bauernfeind

Created date:

Jun 27, 2018 8:58:11 AM

From NPrinting April 2018 to September 2018, image in HTML report does not have width and height properties like in other types of report. Therefore, resizing images in HTML reports is not yet a supported function.

A work-around solution is to add inline CSS style to the generated img tag. For example:
<img src="%%kVrDh%%" alt="kVrDh" style = "width:200px;height:200px"

Note that this does not work for HTML reports embedded into emails in certain email client such as Outlook. Root cause of the issue is that once the report is previewed/ distributed, NPrinting automatically adds attributes width="[original width]" height="[original height]" to the beginning of the img tag.

  • When viewing HTML report in a web browser, there is no problem because the CSS style is prioritized
  • However, when embedding the HTML report to email, some email clients such Outlook prioritize HTML attributes width and height over CSS style. Therefore, the image is reverted to original size.

 

Resize Images in HTML report.png




Environment:

Qlik NPrinting 
 

 

Resolution:


The problem is resolved in NPrinting September 2018 and higher releases. The value of "width" and "height" attributes are used during the image production, in the output report the attribute values will reflect the real image dimensions.

Warning: the inline css is not supported, the "width" and "height" must be an attributes of the tag.

 

Internal Investigation ID(s):

OP-7658

Labels (1)
Contributors
Version history
Last update:
‎2021-06-09 07:28 AM
Updated by: