How to disable attribute replacement in Jaspersoft Studio editor?

I have been using iReport 5.6.0 to edit my templates.

I have editied them with Jaspersoft Studio 6.1.1.final, and tried to compile with older JasperReports library but the compiler threw the following exception:

net.sf.jasperreports.engine.JRException: org.xml.sax.SAXParseException; lineNumber: 30; columnNumber: 124; cvc-complex-type.3.2.2: Attribute 'hTextAlign' is not allowed to appear in element 'style'.

Also the iReport designer shows the same error when I try to open with it.

I figured out that the Editor of the Jaspersoft Studio silently replaces hAlign attributes with hTextAlign / hImageAlign - which are not recognized by the old compiler.

My Question is: is it possible to configure the editor not to do it?

Thanks, Matt

mateusz.meszaros's picture
Joined: Mar 3 2015 - 8:11am
Last seen: 4 years 4 months ago

1 Answer:

Yes, this is possible. Under Preferences -> Jaspersoft Studio -> Version -> Set it to version 5.6

ernestoo's picture
18008
Joined: Nov 29 2010 - 11:59am
Last seen: 5 years 6 months ago
Feedback