April 2018
Intermediate to advanced
202 pages
4h 48m
English
Adding charts with DynamicJasper is done through the addChart method of the FastReportBuilder class. The following snippet of code shows the full configuration of the Monthly Capacity Report:
DynamicReportBuilder reportBuilder = new FastReportBuilder() .setUseFullPageWidth(true) .setTitle("Monthly Capacity Report") .setWhenNoData("(no data)", new Style()) .addAutoText("CONFIDENTIAL", AutoText.POSITION_HEADER, AutoText.ALIGMENT_LEFT, 200, new Style()) .addAutoText(LocalDateTime.now().toString(), AutoText.POSITION_HEADER, AutoText.ALIGNMENT_RIGHT, 200, new Style()) .addColumn(monthColumn = ColumnBuilder.getNew() .setColumnProperty("monthName", String.class) .setTitle("Month") .build()) .addColumn(callsColumn = ColumnBuilder.
Read now
Unlock full access