There is a main report file containing subreports. It is compiled into .jasper, and I access it by loading it into a class JaserReport.
I can get fields and datasets through
report.getMainDataset().getFields();
However, I can’t get nested reports, I tried to get them through
report.getAllBands();
and then using the for clause
for (int i = 0; i < bands.length; i++) {
JRElement[] element = bands[i].getElements();
}
That way I can get multiple classes JRBaseSubreport, and that is as far as I can get. I can access the subtitle elements, but I cannot get the subtitle names.
Is there any way to do this?
source
share