I'm attempting to create an HTML report using Nprinting. Most of it works fine, but when trying to Nprint a straight table that contains an image, the report will not display the image.
This is the table I am attempting to produce in HTML:
The 'Competitor' column contains an image for each dimension (the actual dimension column is hidden).
However, this is the result when this table is placed into my email report through nprinting:
The competitor field seems to have dropped off, and I'm not sure why.
For reference, here is my HTML code:
Thanks for the thread - interesting read.
However, my business requirement is that the report is rendered as HTML, as it is embedded in an email that is sent out to multiple recipients. Like this:
Graphs work great, it's just tables that aren't behaving. It is possible for me to paste the table in as an image, but that means loosing functionality.
I never used, nprinting. But, in html code do you used correct path path of image. Can you copy image section of div to notepad and use this chrome to open that file and check whether the image is coming up or not.
Ah, very good point! These images are on my local directory, so they cannot be displayed on a browser.
I've tried testing it with an image I uploaded to imgur, but the images are still not displaying. I've checked that the file path is correct, as the <img src = "link"> tag does work on the file.
I circumvented a similar issue by manually uploading the images to the webserver the HTML-reports are pushed to and just referencing them in the report.
This would of course need to be accessible to al receipients of your email.
With kind regards,
Great, you liked it !!
And id nprinting supports then I believe it should work. Can you give absolute path using directory like ../../../filename.png... then we can look the part where it is not working..
This is the absolute file path, and should populate the cell on the top right, under the header "TP Image". In Qlik, the cell is represented as an image (which does work).
The result is this, though:
Please note that you can embed HTML reports into email bodies in Qlik NPrintin 16.*. This feature will be supported in Qlik NPrinting 17 starting from next release November 2017 (17.5.0).
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 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.
Just so you know, many report types allow you to specify an alternate format for the final report. So, you can build an Excel report (as in the examples linked to above) and specify the final format to be HTML - and embed that into the body of your e-mail message (currently available only in version 16).
HTH - Daniel.