Qlik Community

Ask a Question

Qlik NPrinting Discussions

Discussion Board for collaboration on Qlik NPrinting.

Announcements
Welcome to our newly redesigned Qlik Community! Read our blog to learn about all the new updates: READ BLOG and REPORTED ISSUES
cancel
Showing results for 
Search instead for 
Did you mean: 
Contributor
Contributor

nprinting - HTML Report - Reszing of

Good Morning,

I am having an issue with the resizing of Qlikview Objects(Images) within an HTML report.  I've tried the following HTML code to resize the object.

<img src="%%CH17_131692689%%" alt="CH17_131692689" width="85%" >

When I run a preview it appears to be resized but when the report is sent via email the resizing is not applied.  Any thoughts on what I can do to preserve the resizing?

Thanks,

Jamie

7 Replies
Specialist II
Specialist II

Have you tried putting it in a div or something?

Employee
Employee

Hi,

In HTML templates, Images have not height or width properties. Also if you set the HTML image attributes in the code they will be overwritten. We know this and it is in the list of improvements we would to add to the product, but at the moment I dont't know when it will be added.

As workaround now (April 2018) you can develop a PixelPerfect report and export it in HTML format. You don't have a full control of the generated HTML code but I just tested it and images are exported with the dimensions you set in their properties.

Image dimensions.png

Best Regards,

Ruggero

---------------------------------------------

When applicable please mark the appropriate replies as CORRECT https://community.qlik.com/docs/DOC-14806. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads as HELPFUL if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads as HELPFUL if you feel additional info is useful to others.



Best Regards,
Ruggero
---------------------------------------------
When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads with a LIKE if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads with LIKEs if you feel additional info is useful to others.
Employee
Employee

Hi,

I found a solution. See the following HTML code:

<html>

    <body>

         <img src="%%CH184%%" alt="100px X 100px" style = "width:100px;height:100px">

    </body>

</html>

Best Regards,

Ruggero

---------------------------------------------

When applicable please mark the appropriate replies as CORRECT https://community.qlik.com/docs/DOC-14806. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads as HELPFUL if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads as HELPFUL if you feel additional info is useful to others.



Best Regards,
Ruggero
---------------------------------------------
When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads with a LIKE if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads with LIKEs if you feel additional info is useful to others.
Partner
Partner

Have you tried this and gotten it to work in Microsoft Outlook? It works in the preview if I open it in a browser, but when sent to Outlook it seems that Outlook ignores the style tag and just uses the height/width tags.

Employee
Employee

Hi,

Every email client is different and could need different code customizations. There are also softwares and online services to test the HTML code by visualizing the delivered email. For example, my previous code works fine with GMail but doesn't work with Outlook. By using Google I found that this version works instead:

<html>

    <body>

         <img src="%%CH184%%" alt="100px X 100px" width="100" style = "width:100px;height:100px">

    </body>

</html>

I tested it with Outlook and GMail.

I hope this helps.

Best Regards,

Ruggero

---------------------------------------------

When applicable please mark the appropriate replies as CORRECT https://community.qlik.com/docs/DOC-14806. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads as HELPFUL if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads as HELPFUL if you feel additional info is useful to others.



Best Regards,
Ruggero
---------------------------------------------
When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads with a LIKE if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads with LIKEs if you feel additional info is useful to others.

Hi,

Have a look also at this topic where I explain how you control size of your objects:

https://community.qlik.com/message/1486258#1486258

cheers

Lech

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.
Creator
Creator

BTW,

I have a similar issue here:

in the old version of NPrinting this was not the case. It is so silly that this was changed. How does the QlikTeam think?????????

https://community.qlik.com/t5/Qlik-NPrinting-Discussions/NPrinting-overrides-images-sizes-in-HTML-Re...