Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
RaviPuttaswamy5
Partner - Contributor III
Partner - Contributor III

HTML Report in Nprinting

hi All,

Trying to create HTML report with some background color, the background color is coming fine in attachment of report.

But when embedding same report on mail body not getting required background color its just coming as white.

please suggest.

Thanks in Advance

Labels (1)
2 Replies
RaviPuttaswamy5
Partner - Contributor III
Partner - Contributor III
Author

@Lech_Miszkiewicz could you able to suggest on this pls

Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,  yes I can comment on that. 

In fact this is not NPrinting issue at all. 

Email clients behave differently and they are pain in the back side to work with when designing html reports. You always need to check and verify which style will be supported in your email clients. Assuming that nowadays people use PCs with Windows, Macs, Phones (Android/Iphone) , Outlook, Gmail, Web etc... you have to check what will and what will not work in those different scenarios. I dont want to say that this website is the best : https://www.campaignmonitor.com/css/ but at least it will give you idea what you need to work with.

Lech_Miszkiewicz_0-1690447000365.png

Then it is a matter of using inline vs external CSS. From my experience inline seem to work much better.

Lastly - keep in mind that only part of HTML code from your template between <BODY> </BODY> tags is making its way to email body. Any code outside of those tags is being removed.

cheers

 

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.