background = factory.getBand(jasperReport.getBackground());
if (background != missingFillBand)
{
background.setOrigin(
new JROrigin(
reportName,
BandTypeEnum.BACKGROUND
)
);
}
title = factory.getBand(jasperReport.getTitle());
if (title != missingFillBand)
{
title.setOrigin(
new JROrigin(
reportName,
BandTypeEnum.TITLE
)
);
}
pageHeader = factory.getBand(jasperReport.getPageHeader());
if (pageHeader != missingFillBand)
{
pageHeader.setOrigin(
new JROrigin(
reportName,
BandTypeEnum.PAGE_HEADER
)
);
}
columnHeader = factory.getBand(jasperReport.getColumnHeader());
if (columnHeader != missingFillBand)
{
columnHeader.setOrigin(
new JROrigin(
reportName,
BandTypeEnum.COLUMN_HEADER
)
);
}
detailSection = factory.getSection(jasperReport.getDetailSection());
if (detailSection != missingFillSection)
{
detailSection.setOrigin(
new JROrigin(
reportName,
BandTypeEnum.DETAIL
)
);
}
columnFooter = factory.getBand(jasperReport.getColumnFooter());
if (columnFooter != missingFillBand)
{
columnFooter.setOrigin(
new JROrigin(
reportName,
BandTypeEnum.COLUMN_FOOTER
)
);
}
pageFooter = factory.getBand(jasperReport.getPageFooter());
if (pageFooter != missingFillBand)
{
pageFooter.setOrigin(
new JROrigin(
reportName,
BandTypeEnum.PAGE_FOOTER
)
);
}
lastPageFooter = factory.getBand(jasperReport.getLastPageFooter());
if (lastPageFooter != missingFillBand)
{
lastPageFooter.setOrigin(
new JROrigin(
reportName,
BandTypeEnum.LAST_PAGE_FOOTER
)
);
}
summary = factory.getBand(jasperReport.getSummary());
if (summary != missingFillBand && summary.isEmpty())
{
summary = missingFillBand;
}
if (summary != missingFillBand)
{
summary.setOrigin(
new JROrigin(
reportName,
BandTypeEnum.SUMMARY
)
);
}
noData = factory.getBand(jasperReport.getNoData());
if (noData != missingFillBand)
{
noData.setOrigin(
new JROrigin(
reportName,
BandTypeEnum.NO_DATA
)
);
}