Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Defect acknowledgement with Nprinting Engine May 2022 SR2, please READ HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
mhaandreas1
Contributor II
Contributor II

nPrinting - Keep CSS in <head> when Embedding Report

I have a HTML nPrinting report that I've designed using some bootstrap CSS templating to look nice. When I preview it in the report designer, it looks fine, exactly how I want it to. 

When I embed it into the report, it seems that nPrinting strips the entire <head> out, including the CSS. It happens when I include the HTML directly into the page and when I use a relative link to the externall hosted file on bootstrap's CDN. 

The report when attached looks fine, including the bootstrap, but my manager doesn't want to have to open it to have it look nice. How can I embed the report into the body of the email and include the bootstrap CSS?

Labels (2)
1 Solution

Accepted Solutions
mhaandreas1
Contributor II
Contributor II
Author

I've found that this works perfectly as long as the <style> tags are included in the <body>. 

View solution in original post

1 Reply
mhaandreas1
Contributor II
Contributor II
Author

I've found that this works perfectly as long as the <style> tags are included in the <body>.