Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
Have you tried putting it in a div or something?
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.
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.
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.
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.
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.
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
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?????????