Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
this_is_hari
Contributor
Contributor

Bring CSS styled tables to nprint report

I have created a qs app with a straight table and styled it with multiple kpi css. Now I need to use that table object with the styling. How should I do that?

Labels (2)
1 Solution

Accepted Solutions
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi @this_is_hari 

as said in my previous message your CSS from multi KPI will not work in Nprinting. The only way is to manually recreate that css in HTML template editor in Nprinting. 
In your case where you use multi KPi (separate object) it will not work with NPrinting even if you try to bring your table as image and reason behind it is that NPrinting renders objects individually so it will render your table without multi KPI. 
On top of that “Keep source format” retains only some (not all formatting) of Qlik Sense table. 

do the bottom line is:

if you are using HTML template recreate your CSS directly in it. 

Lastly-if you wish to embed your report in email body you must validate that CSS you wish to use will work with various email clients as for example Outlook is really big pain to work with in that regard and be aware that only part of report between <body> tags makes its way to email!!!


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.

View solution in original post

3 Replies
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi @this_is_hari 

If you want the exact styling you can add it as an image. 
Otherwise your styling has no use in Nprinting and would have to be recreated using Nprinting methods. 

You also are not telling us many important details like template you are using and required output. 

I suggest spending more time preparing the question for us and I hope we can help you better. 
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.
this_is_hari
Contributor
Contributor
Author

Hi @Lech_Miszkiewicz, Thanks for looking into my query. Let me try to explain in detail.

These steps I have followed in the process:

*Assume that I have only one table and I just want to show that table in report.

  1. I have created a straight table with my required dimensions and measures.
  2. To format that table with styling I have used Multi KPI and I've done CSS styling to the straight table.
  3. After this I have created connection for this app in nprint and added the table into the tables in nprint. (Source formatting is enabled)
  4. I have used the HTML template to create this report. I have just added this table object only into HTML template (not the multi KPI)
  5. When I preview the report, the table data is coming without any styling which is done in QS using Multi KPI object.

Question:

What should be the procedure to get the CSS styling of my table into the nprint report?

 

Let me know if you need further info on this.

Thanks,
Hari

 

Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi @this_is_hari 

as said in my previous message your CSS from multi KPI will not work in Nprinting. The only way is to manually recreate that css in HTML template editor in Nprinting. 
In your case where you use multi KPi (separate object) it will not work with NPrinting even if you try to bring your table as image and reason behind it is that NPrinting renders objects individually so it will render your table without multi KPI. 
On top of that “Keep source format” retains only some (not all formatting) of Qlik Sense table. 

do the bottom line is:

if you are using HTML template recreate your CSS directly in it. 

Lastly-if you wish to embed your report in email body you must validate that CSS you wish to use will work with various email clients as for example Outlook is really big pain to work with in that regard and be aware that only part of report between <body> tags makes its way to email!!!


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.