
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
[NPrinting] CSS and JS support
Hello,
A client was asking if NPrinting will support, in any future version, css or js code on an embedded html report. For some reason If the code is on head section of embedded html report, It doesn't work properly.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Anonymous
CSS does work. I suspect you have an issue with developing your NPrinting report using the CSS information.
- You have to ensure that your insertions are 'between' the opening and closing body tags.
- Check out the following which shows a css table insertion into an NPrinting report.
- https://community.qlik.com/t5/Qlik-NPrinting-Discussions/QlikView-charts-Window-Title-property-not-appearing-in-NPrinting/m-p/1639673/highlight/true#M26647

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks @Frank_S but I mean on an embedded report on mail section of a task.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Frank is right, CSS works as long as they are between BODY tags as only this part of HTML template is moved to email body. JS is also moved if you put it in between BODY tags. The actual problem is that email clients (regardless of the actual client for security reasons dont allow JS in email body).
So the question if JS will ever be available in email body cannot be answered by NPrinting team. They don't control it.
I have already gone through this 2 years ago when I wanted to use google charts in html generated reports in email body. I learned that it was possible to configure CSS and JS and everything. I was able to send email, but preview in outlook did not work (content was blocked by email client). Then as soon as you open this email in web browser everything was rendered. More digging and I soon I learned that JS will never worked in email body.
cheers

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
also more about formatting your mail content here:
https://nprintingadventures.wordpress.com/2019/05/24/creating-email-content-in-nprinting/


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Lech, this is just for images?
What is about marked text, in html editor everything okay, but in mail come like I didn't implement any format...:/
Jasmina

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What do you mean by “marked text” ? Do you mean <mark> tag?
how did you implement it, is it inline?
Did you check if email client supports it?
