How to disable attribute replacement in Jaspersoft Studio editor?

1

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: 10 months 2 weeks ago

1 Answer:

2

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

ernestoo's picture
8524
Joined: Nov 29 2010 - 11:59am
Last seen: 1 year 11 months ago
Feedback
randomness