I am currently unsure why if I ran this sample template of mine, I cannot see any text.
You did not specify the datasource and so the cause of your report is empty.
You can set whenNoDataType
(When No Data
property in iReport) report's attribute for showing "empty" report.
The possible values of this attribute are:
whenNoDataType="NoPages"
).whenNoDataType="BlankPage"
).whenNoDataType="AllSectionsNoDetail"
).whenNoDataType="NoDataSection"
).In case using noData section you should add this band to the report's template (for example, with help of iReport).
When you are using the Java code like this:
JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport,
map, new JREmptyDataSource());
it means that you are passing the empty datasource or in other words did not pass the datasource.
In case you did not pass datasource and database connection the only chance to show the data at report - is to pass data via parameters (or initialize parameters inside the report's template)