How to resize images in NPrinting HTML reportArticle Number: 000052821 | Last Modified: 2019/02/13
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.
This issue is under investigation in bug OP-7658
Environment: NPrinting up to April 2018
Warning: the inline css is not supported, the "width" and "height" must be an attributes of the tag.
Have a Question?
Search Qlik's Support Knowledge database or request assisted support for highly complex issues.Submit a case
Experiencing a serious issue, please contact us by phone. View phone numbers and hours by region.