My collegue uses iReport plugin on NetBeans, as he said iReport version is 1.3.3. After i opened report design that he created, it looked like below.
I figured out that the following line causes the problem:
?xml version="1.0" encoding="UTF8" ?>
!DOCTYPE jasperReport PUBLIC "-//JasperReports//DTD JasperReport//EN" "
http://jasperreports.sourceforge.net/dtds/jasperreport.dtd"
iReport 2.0.4 when having above line completely overwrites design xml with new blank report having width and height equal to 0.
After changing header line to :
?xml version="1.0" encoding="UTF-8" ?>
!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "
http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">
the problem becomes resolved. It seems that iReport expects DOCTYPE of "DTD Report Design", but not "DTD JasperReport".
Labels: iReport, JasperReports