Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Manish
Creator
Creator

Adjusting Image size dynamically in Nprinting HTML report

Hi All

I have a unique problem for which I am not getting any solution.

I am trying to create a HTML template as follows.

<html>
<head>
<meta name ="viewport" content="width=device-width,initial-scale=1.0">
</head>
<body>
<p>
Hi All
<br>
<br>Please find below the status update .
</p>
<div>
<img src="%%bWx%%" alt="bWx">
</div>
<br>

<div>
<img src="%%jLZ%%" alt="jLZ">

<br>
<p>
<b>Please refer to following links for detailed information</b>

</p>
<a href="https://xyz">Visualization Dashboard</a>
<p>
Many thanks
</p>
</div>
</body>
</html>

Now the problem is image src="%%jLZ%%" can have dynamic rows anything between 2 to 10 and I have set the Data displayed height to 1350px. Now when 10 rows are coming all looks good but when 2 rows are coming in the chart then there is a big space between the chart image and the text below it (Please refer to following links .....) which is not looking good.

Any suggestions ?

Nprinting designer version: May 2022 SR1

QS version : May 2021 Patch 6

Many thanks

Manish Kukreti

 

Labels (2)
12 Replies
Manish
Creator
Creator
Author

@Lech_Miszkiewicz 

Hey, sorry I have a follow up question here. How can I have a "Grand Total" at the button of the pivot table?

I tried to use dimensionality() to generate the <td> tag in vDetail variable expression for "Grand Total" but no luck.

Could you please share your thoughts.

 

Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi @Manish ,

you would need to create grouping dimension and use that a a column in the table. Dim1 would be your normal dimension, and Dim2 would be your grouping dimension. sample below. then instead of using dim 1 you would use dim2 in the table. That is concept used to create subtotals, grand totals, P&Ls etc in straight tables. I can only point you in the direction as those kinds of solutions are very much based on individual scenarios so detailed explanation can be hard at the moment. 

dim1 dim2

a

a
b b
a grand total
b grand total

 

With the above your Grand Total is basicaly just another value in straight table

hope this makes sense

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.
Manish
Creator
Creator
Author

Thanks @Lech_Miszkiewicz . Got it.

Really appreciate your help here.