FastReportBuilder drb = new FastReportBuilder();
DynamicReport dr;
// get the styles
DJReportStyles djrst = getDjReportStyles();
/**
* Set the styles. In a report created with DynamicReportBuilder we do
* this in an other way.
*/
// // Rows content
// Style columnStyleNumbers = new Style();
// columnStyleNumbers.setFont(Font.VERDANA_SMALL);
// columnStyleNumbers.setHorizontalAlign(HorizontalAlign.RIGHT);
//
// // Header for number row content
// Style columnStyleNumbersBold = new Style();
// columnStyleNumbersBold.setFont(Font.VERDANA_MEDIUM_BOLD);
// columnStyleNumbersBold.setHorizontalAlign(HorizontalAlign.RIGHT);
// columnStyleNumbersBold.setBorderBottom(Border.PEN_1_POINT);
//
// // Rows content
// Style columnStyleText = new Style();
// columnStyleText.setFont(Font.VERDANA_SMALL);
// columnStyleText.setHorizontalAlign(HorizontalAlign.LEFT);
//
// // Header for String row content
// Style columnStyleTextBold = new Style();
// columnStyleTextBold.setFont(Font.VERDANA_MEDIUM_BOLD);
// columnStyleTextBold.setHorizontalAlign(HorizontalAlign.LEFT);
// columnStyleTextBold.setBorderBottom(Border.PEN_1_POINT);
//
// // Subtitle
// Style subtitleStyle = new Style();
// subtitleStyle.setHorizontalAlign(HorizontalAlign.LEFT);
// subtitleStyle.setFont(Font.VERDANA_MEDIUM_BOLD);
// Localized column headers
String artNo = Labels.getLabel("common.Article.No");
String artShortText = Labels.getLabel("common.Description.Short");
String artPrice = Labels.getLabel("common.Price");
drb.addColumn(artNo, "artNr", String.class.getName(), 20, djrst.getColumnStyleText(), djrst.getHeaderStyleText());
drb.addColumn(artShortText, "artKurzbezeichnung", String.class.getName(), 50, djrst.getColumnStyleText(), djrst.getHeaderStyleText());
drb.addColumn(artPrice, "artPreis", BigDecimal.class.getName(), 20, djrst.getColumnStyleNumbers(), djrst.getHeaderStyleNumbers());
// Sets the Report Columns, header, Title, Groups, Etc Formats
// DynamicJasper documentation
drb.setTitle(this.zksample2title);
drb.setSubtitle("Article-List: " + ZksampleDateFormat.getDateFormater().format(new Date()));
drb.setTitleStyle(djrst.getTitleStyle());
drb.setPrintBackgroundOnOddRows(true);
drb.setUseFullPageWidth(true);
dr = drb.build();
// Get information from database