.documentPath("./modules/core/test/sample/invoice/invoice.docx")
.documentName("invoice.docx")
.outputType(ReportOutputType.docx)
.readFileFromPath();
reportBuilder.template(reportTemplateBuilder.build());
BandBuilder bandBuilder = new BandBuilder();
ReportBand main= bandBuilder.name("Main").query("Main", "return [\n" +
" [\n" +
" 'invoiceNumber':99987,\n" +
" 'client' : 'Google Inc.',\n" +
" 'date' : new Date(),\n" +
" 'addLine1': '1600 Amphitheatre Pkwy',\n" +
" 'addLine2': 'Mountain View, USA',\n" +
" 'addLine3':'CA 94043',\n" +
" 'signature':'<html><body><b><font color=\"red\">Mr. Yarg</font></b></body></html>'\n" +
" ]]", "groovy").build();
bandBuilder = new BandBuilder();
ReportBand items = bandBuilder.name("Items").query("Items", "return [\n" +
" ['name':'Java Concurrency in practice', 'price' : 15000],\n" +
" ['name':'Clear code', 'price' : 13000],\n" +
" ['name':'Scala in action', 'price' : 12000]\n" +
" ]", "groovy").build();