How to add css into jasper report

1

Hello,

I want to add css into my jasper report, Please suggest me the solution.

I already added a css file in theme of jasper server, but it looks like a web view,It doesn't have anything to do with the report.  

I searched several similar question in the past, however, there is no a definite answer.

If you could give an examle/link, I'll appreciate that.

Kelly pan

panlj2004's picture
Joined: Jul 20 2015 - 12:17am
Last seen: 4 years 2 months ago

3 Answers:

-1

CSS is only effective in HTML view and not in other formats (e.g. PDF). As such, it seems sufficient to just have them in JasperReports Server.

If you want to modify the attributes, set them from the "Properties" view in Jaspersoft Studio.

hozawa's picture
50953
Joined: Apr 24 2010 - 4:31pm
Last seen: 4 months 1 week ago
0

thank you, hozawa,

I want to set a group definition for my head,content,footer and so on.

do you any better solution? I seen some one montioned "resource file", but I don't know how to added

panlj2004's picture
Joined: Jul 20 2015 - 12:17am
Last seen: 4 years 2 months ago
0

How about creating a template for your reports?

http://jasperreports.sourceforge.net/sample.reference/templates/

hozawa's picture
50953
Joined: Apr 24 2010 - 4:31pm
Last seen: 4 months 1 week ago
Feedback
randomness