"如题, 用 api 代码导出 EXECEL 或 pdf 可以设置文件名称吗"
如题, 用 api 代码导出 EXECEL 或 pdf 可以设置文件名称吗
里边的 filename 就是自己定义的名称11.1.6 输出报表
◆ 输出报表到 Excel
ReportUtils.exportToExcel(java.io.OutputStream os, IReport report, boolean pageBroken);
ReportUtils.exportToExcel(java.io.OutputStream os, IReport report, boolean pageBroken, int dispRatio);
ReportUtils.exportToExcel(java.lang.String fileName, IReport report, boolean pageBroken);
ReportUtils.exportToExcel(java.lang.String fileName, IReport report, boolean pageBroken, int dispRatio);
◆ 输出报表到 Excel2007
ReportUtils.exportToExcel 2007(java.lang.String fileName,IReport report,boolean pageBroken);
ReportUtils.exportToExcel 2007(java.io.OutputStream os,IReport report,boolean pageBroken);
◆ 输出报表到 html
ReportUtils.exportToHTML(java.lang.String fileName, IReport report);
ReportUtils.exportToHTML(java.lang.String fileName, IReport report, float scale);
ReportUtils.exportToHTML(java.lang.String fileName, IReport report, java.lang.String encode, float scale);
◆ 输出报表到 PDF
ReportUtils.exportToPDF(java.io.OutputStream os, IReport report);
ReportUtils.exportToPDF(java.io.OutputStream os, IReport report, boolean pageBroken, boolean graphicOut);
ReportUtils.exportToPDF(java.lang.String fileName, IReport report);
ReportUtils.exportToPDF(java.lang.String fileName, IReport report, boolean pageBroken, boolean graphicOut);
里边的 filename 就是自己定义的名称
11.1.6 输出报表
◆ 输出报表到 Excel
ReportUtils.exportToExcel(java.io.OutputStream os, IReport report, boolean pageBroken);
ReportUtils.exportToExcel(java.io.OutputStream os, IReport report, boolean pageBroken, int dispRatio);
ReportUtils.exportToExcel(java.lang.String fileName, IReport report, boolean pageBroken);
ReportUtils.exportToExcel(java.lang.String fileName, IReport report, boolean pageBroken, int dispRatio);
◆ 输出报表到 Excel2007
ReportUtils.exportToExcel 2007(java.lang.String fileName,IReport report,boolean pageBroken);
ReportUtils.exportToExcel 2007(java.io.OutputStream os,IReport report,boolean pageBroken);
◆ 输出报表到 html
ReportUtils.exportToHTML(java.lang.String fileName, IReport report);
ReportUtils.exportToHTML(java.lang.String fileName, IReport report, float scale);
ReportUtils.exportToHTML(java.lang.String fileName, IReport report, java.lang.String encode, float scale);
◆ 输出报表到 PDF
ReportUtils.exportToPDF(java.io.OutputStream os, IReport report);
ReportUtils.exportToPDF(java.io.OutputStream os, IReport report, boolean pageBroken, boolean graphicOut);
ReportUtils.exportToPDF(java.lang.String fileName, IReport report);
ReportUtils.exportToPDF(java.lang.String fileName, IReport report, boolean pageBroken, boolean graphicOut);