如何使用BIRT生成受密码保护的Excel文件?

时间:2016-04-04 07:38:47

标签: java excel passwords birt birt-emitter

这是我在eclipse中生成Excel文件的代码的一部分。基于BIRT。

if (ArrayUtils.contains(reportFormats, EXCEL)) {
    // set output options
    EXCELRenderOption options = new EXCELRenderOption();
    options.setOutputFormat("xls");
    options.setOutputFileName(reportName + ".xls");
    options.setSupportedImageFormats("PNG;GIF;JPG;BMP");
    renderTask.setRenderOption(options);
    renderTask.render();
}

我在互联网上搜索了很多,但找不到解决方案,请帮忙。 谢谢,大家。

0 个答案:

没有答案