ReportExporter.java代码中
复制内容到剪贴板
代码:
if (as.equals("dhtml")) {
OutputStreamWriter writer = new OutputStreamWriter(os, "UTF-8");
job.printAsDHTML(imp, writer);
} else if (as.equals("pdf")) {
job.printAsPDF(os);
} else if (as.equals("xls") || as.equals("xlsn")) {
ByteArrayOutputStream ba = new ByteArrayOutputStream();
if (as.equals("xlsn")) {
job.printAsXLSn(ba);
} else {
job.printAsXLS(ba);
}
ba.writeTo(os);
} else if (as.equals("rtf")) {
job.printAsRTF(os);
} else {
throw new Exception(App.messages.getString("res.44") + as);
}
问题: 是配置问题还是软件问题?