j.t.casperson Posted November 24, 2015 Posted November 24, 2015 I have a jrtx style sheet attached to several jasper reports and every time I make a new text element, line element, table, etc. I have to manually assign the style I want to that particular element. It's kind of tedious to do this over and over again. Is there a way to assign "default style" to an element in JasperStudio so the style can be already filled the second I place an element in my report?
hozawa Posted November 25, 2015 Posted November 25, 2015 I'm not aware of a default style but instead of using a style, it's possible to change default properties in jasperreports.properties file on properties defined in your "default style".http://jasperreports.sourceforge.net/config.reference.html#net.sf.jasperreports.style.{style_property_suffix}
elizam Posted November 26, 2015 Posted November 26, 2015 You might also try composite elements (new in 6.1). You can create pre-configured elements and add them to your palette:http://community.jaspersoft.com/documentation/tibco-jaspersoft-studio-user-guide/v611/composite-elements
j.t.casperson Posted November 30, 2015 Author Posted November 30, 2015 I'm not sure why I can't comment on answers given, so I'll just leave a comment here. First of all, I really appreciate those who've taken the time to respond to my question. I'm happy to see ways to change element properties and custom elements, unfortunately these don't exactly help this particular question. Since I use a jrtx stylesheet with my reports. The reason why changing properties or using a custom element doesn't work is because I need the ability to change styles via the stylesheet. As it is I have to define the style for every element I add, it works, it's just tedious and easy to forget.
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