Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Team,
I have written the below code in Qlik NPrinting to generate HTML Report in the mail body.
<html>
<body>
<Table style="width:100%; Height:2000px; border=0.5px; border-style:solid; border-color:black;">
<tr style= "border: 1px solid black;">
<td style= "border: 1px solid black;" rowspan="3"> <img height="400" width="500" src="%%JwLQrhA%%" alt="JwLQrhA"></td>
<td style= "border: 1px solid black;text-align:center;"><img height="120" width="150" src="%%TSgfAv%%" alt="TSgfAv"> </td>
<td style= "border: 1px solid black;" rowspan="3"> <img height="400" width="500" src="%%GvVnu%%" alt="GvVnu"></td>
<td style= "border: 1px solid black;text-align:center;"><img height="120" width="150" src="%%MPgwQEm%%" alt="MPgwQEm"> </td>
</tr>
<tr>
<td style= "border: 1px solid black;text-align:center;"><img height="120" width="150" src="%%VTGqNP%%" alt="VTGqNP"></td>
<td style= "border: 1px solid black;text-align:center;"><img height="120" width="150" src="%%cQpkBs%%" alt="cQpkBs"></td>
</tr>
<tr>
<td style= "border: 1px solid black;text-align:center;""><img height="120" width="150" src="%%cRuHP%%" alt="cRuHP"></td>
<td style= "border: 1px solid black;text-align:center;"><img height="120" width="150" src="%%SfrLpdd%%" alt="SfrLpdd"></td>
</tr>
<tr>
<td style= "border: 1px solid black;" colspan="4"><img height="400" width="1500" src="%%YxSabmp%%" alt="YxSabmp"> </td>
</tr>
<tr>
<td style= "border: 1px solid black;" colspan="4"><img height="400" width="1500" src="%%ugeZyj%%" alt="ugeZyj"></td>
</tr>
<tr>
<td style= "border: 1px solid black;" colspan="4"><img height="400" width="1500" src="%%Mkmddy%%" alt="Mkmddy"></td>
</tr>
</table>
</body>
</html>
Problem statement - I am not getting consistent font style in all the charts when i trigger the report. every time it gets changed in Qlik NPrinting. In Qliksense dashboard, font style is consistent in all the charts.
Please help me on this issue. I have attached the sample report for your reference.
NPrinting Version - Qlik NPrinting May 2021 SR3
Try this...
https://help.qlik.com/en-US/nprinting/May2022/Content/NPrinting/HTMLReports/HTML-formatting.htm
Well...
To me it looks like you are using images and text you are having issues with is also an image from Qlik Sense object which is having html responsive design meaning it adjusts itself depending on resolution and size of the image produced. None of the styles used in your code will have a effect apart from the size of the placeholder/image.
I NEVER use images unless it is the very last resort because of that very reason.
For most of the things you have there on the screen you could very much build proper html report with data being passed into HTML code and images used only for charts (not for chart titles,subtitles or footnotes as those scan also be done directly in html by passing formulas or variables or simply hardcoding them if there is no dynamic content.
Now, if you really need to use images you would have to play with those parameters which control resolution and size of the image: https://help.qlik.com/en-US/nprinting/May2022/Content/NPrinting/ReportsDevelopment/Image-Dimension-M... this is link to section of the help which @Frank_S has given you link to in his post.
HTML reports in nprinting require knowledge across Qlik, NPrinting, HTML/CSS also a mail clients support so there is a lot to consider when building such report. When done right it can get you stunning result but I agree it can be a painful process if you just starting with that template and you are not aware of all traps ahead of you - I have been there and I can understand the pain. I dont want to drag you away from the core of this conversation, but if you are interested you may as well have a read here where I describe how to use few tricks in HTML to get nice results in reports but also the let people realize how much prep is required to get it done:
https://nprintingadventures.com/2020/04/24/how-to-build-html-pivot-table-in-nprinting/
https://nprintingadventures.com/2021/06/22/js-charts-libraries-with-nprinting/
https://nprintingadventures.com/2019/05/24/creating-email-content-in-nprinting/
hope this helps
cheers
Lech