Qlik Community

Qlik NPrinting Discussions

Discussion Board for collaboration on Qlik NPrinting.

Not applicable

does nprinting support id or class in html format report?

Hi,

I tried to add id or class in the html elements in the html report, then applied the style (as css) in the style but it doesn't work. Does nprinting only support to add those style in the html element individually? not able to group it by id or class in header or css stylesheet?

1 Solution

Accepted Solutions
Employee
Employee

Re: does nprinting support id or class in html format report?

Hi Ming,

You can use the <style> tag in the header section of the document to create CSS rules that you can then apply. You will need to uncheck the Keep Source Formats table property.

In the template:

Output:

HTH - Daniel.

3 Replies
geminihzh
Valued Contributor

Re: does nprinting support id or class in html format report?

Hi, Ming,

I think it works.

Just test a simple .html report:

html as below:

<html>

<head>

<style>

h2.first {text-align:center}

</style>

</head>

<body>

<h2 class="first">Part 1 </h2>

<h2 class="second">Part 2 </h2>

</body>

</html>

And just open the html report in browser, it works. Or maybe I wrongly understand your requirement?

Zhihong

Employee
Employee

Re: does nprinting support id or class in html format report?

Hi Ming,

You can use the <style> tag in the header section of the document to create CSS rules that you can then apply. You will need to uncheck the Keep Source Formats table property.

In the template:

Output:

HTH - Daniel.

Not applicable

Re: does nprinting support id or class in html format report?

thanks so much for all your help!

Community Browser