2006 JR Open Discussion Posted August 22, 2006 Share Posted August 22, 2006 By: Daren O - rckrll106 Look and feel 2006-03-07 07:54Is there a way to apply a look and feel? Like using a property file or css? I know there is Style Text. I haven't worked much with it to be honest. Some companies might have different color schemes and I don't want to create custom templates for each company. Any ideas? Thanks in Advance. By: Doug Berkland - berkland RE: Look and feel 2006-03-07 08:38When I first saw "styles" on the new feature list, I was hoping it was something like CSS style sheets that would allow you to completely change the look like you are asking. Reality however falls short of that. It's just a new name for report fonts, with additional properties for colors and borders. It's a step in the right direction, but with how feature rich CSS is, it will take a while for JasperReports to come close to it. By: Daren O - rckrll106 RE: Look and feel 2006-03-07 08:56I wonder if there is there a way to set a style using a parameter? or externally? By: Doug Berkland - berkland RE: Look and feel 2006-03-07 09:56You can modify a style programmatically by working with the styles "JRStyle[] getStyles()" method of a JRReport before filling the reprot. The JRStyle interface has setters for all attributes. The biggest limitation I see is that if you wanted to increase the space taken up by anything, you would have to programmatically move the elements around too. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now