When the of a row of my reports gets too long for a single page, it gets continued on the next page, however, the border gets cut off as seen in this image.
Any ideas?
I'm using JRPdfExporter
for exporting reports to PDF.
UPDATED:
DynamicReport dynamicReport;
...
fastReportBuilder.setPageSizeAndOrientation(Page.Page_A4_Landscape());
fastReportBuilder.setUseFullPageWidth(true);
//margin 50
fastReportBuilder.setMargins(MARGIN, MARGIN, MARGIN, MARGIN);
fastReportBuilder.setDefaultStyles(getTitleStyle(), null, getColumnHeaderStyle(), getColumnDetailsStyle());
private Style getColumnHeaderStyle() {
Style hStyle = new Style();
hStyle.setBorder(Border.THIN());
hStyle.setTransparent(false);
hStyle.setBackgroundColor(new Color(0, 142, 175));
hStyle.setTextColor(Color.WHITE);
hStyle.setHorizontalAlign(HorizontalAlign.CENTER);
hStyle.setVerticalAlign(VerticalAlign.MIDDLE);
hStyle.setFont(new Font(10, MY_FONT, false));
return hStyle;
}
private Style getColumnDetailsStyle() {
Style cStyle = new Style();
cStyle.setBorder(Border.THIN());
cStyle.setFont(new Font(10, MY_FONT, false));
cStyle.setVerticalAlign(VerticalAlign.TOP);
return cStyle;
}