Quantcast
Channel: BIRT Exchange Forum Feed
Viewing all articles
Browse latest Browse all 542

how to call BIRT xlsx emitter from a servlet

$
0
0
till now i was calling the by default file from a servlet to make xls by using

method.setPath("/birt/run?__report=abc.rptdesign&__format=xls");
response.setContentType("application/xls");
response.setHeader("Content-Disposition", "attachment; filename=abc Report.xls");


now i incorporated BIRT xlsx emitter and i've changed the path to

method.setPath("/birt/run?__report=abc.rptdesign&__emitterid=uk.co.spudsoft.birt.emitters.excel.XlsxEmitter&__format=xlsx");
response.setContentType("application/xlsx");
response.setHeader("Content-Disposition", "attachment; filename=abc Report.xlsx");

i am getting an error which i am attaching.


Viewing all articles
Browse latest Browse all 542