161162163164165166167168169170171
} ByteArrayOutputStream baos = new ByteArrayOutputStream(); export(c, baos); final AMedia amedia = new AMedia("generatedReport.pdf", "pdf", "application/pdf", baos.toByteArray()); Filedownload.save(amedia); revertPrintSetting();
146147148149150151152153154155156
export(c, baos); //test // System.out.println(baos.toString()); final AMedia amedia = new AMedia("generatedReport.html", "html", "text/html", baos.toByteArray()); Filedownload.save(amedia); revertPrintSetting();