Jump to content
We've recently updated our Privacy Statement, available here ×

I added CSS class support to JasperReports


Recommended Posts

By: Daren Drummond - darendrummond

I added CSS class support to JasperReports

2003-06-18 15:09

I needed my JasperReports to integrate with my website's css styles so I added a new attribute to the reportElement tag called "cSSClass" that will simply dump the cSSClass to the <TD class="myclass"> tag. For example:

 

<reportElement cSSClass="reportLabel" x="5" y="5" width="100" height="15" isPrintWhenDetailOverflows="false"/>

 

This has really saved me a lot of time styling my reports. Granted, I only care how they look via the HTML exporter and not in pdf. If anyone is interested in this feature then I'll clean up the code and post it back to the project.

 

Daren

 

 

 

 

 

By: Rod Potter - roddipotter

RE: I added CSS class support to JasperReports

2003-08-11 13:42

That would be great - I need the CSS feature as well.

 

Could you post the updated class?

Link to comment
Share on other sites

  • 1 year later...
  • Replies 20
  • Created
  • Last Reply

Top Posters In This Topic

hi,

im trying to include external style sheet in to jasper report. i hv included .css file thru HTML_HEADER. bt the pblm is dat there are some inline style tags which get included in the output of jasperreport when i export it thru HTMLExporter. Thus the effect of css file are not getting reflected.

 

Can u just send the code of including (css)style class in the jasper reports.

 

thx in advanced.

Link to comment
Share on other sites

  • 3 weeks later...
  • 2 months later...
  • 4 months later...
  • 3 weeks later...
  • 5 months later...
  • 1 month later...
  • 2 weeks later...
  • 4 weeks later...
  • 2 weeks later...

Hi,

 

I'm sorry, but what you have seen as initial topic above, from Daren Drummond, is an old post from 2003, posted initially on the forums at Sourceforge.net.

When we moved the forums to this forge, the initial author of the message did not get your replies.

The only way to get to Daren is to write him on his Sourceforge.net account, hoping he will reply:

 

darendrummon@users.sourceforge.net

 

I hope this helps.

Teodor

 

Link to comment
Share on other sites

  • 11 months later...
  • 3 weeks later...
  • 3 months later...
  • 1 month later...
  • 3 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...