如何去掉iReport保存時自動添加的uuid

iReport 4.6.0及其之後的版本在保存的時候會自動添加uuid。保存後,重新打開jrxml文件的時候會報以下錯誤: 

Error loading the report template

Message:
    net.sf.jasperreports.engine.JRException: org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 441; cvc-complex-type.3.2.2: Attribute 'uuid' is not allowed to appear in element 'jasperReport'.

 

解決方法

選擇一個iReport 4.6.0之前的舊版本進行保存,配置如下所示:

Tools > Options > iReport  > General > Compability>選擇JasperReports4.5.0

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章