grid.add(new TextPrint(getTitle(),fontTitle));
grid.add(new LinePrint());
grid.add(new LineBreakPrint(fontTitle));
grid.add(content);
final PagePrint page = new PagePrint(grid);
////////////////////////////////////////////////////////////////////////////
// Tabellen-Header
DefaultGridLook look = new DefaultGridLook(5,5);
GridPrint table = new GridPrint("l:p:g, r:p:g",look);
{
table.add(new TextPrint(i18n.tr("Druck: {0}",HBCI.LONGDATEFORMAT.format(new Date())),fontTiny));
ImagePrint ip = new ImagePrint(SWTUtil.getImage("hibiscus-donate.png").getImageData(),new Point(300,300));
table.add(new AlignPrint(ip,SWT.RIGHT,SWT.TOP));
}
////////////////////////////////////////////////////////////////////////////
page.setHeader(new SimplePageDecoration(table));
PageNumberPageDecoration footer = new PageNumberPageDecoration(SWT.RIGHT);
footer.setFontData(fontTiny);
page.setFooter(footer);
this.customize(page);
PrintJob job = new PrintJob(i18n.tr("Hibiscus {0}",HBCI.LONGDATEFORMAT.format(new Date())),page);