【发布时间】:2015-06-24 14:08:47
【问题描述】:
我想要的只是打印 JasperReport 而无需用户选择打印机。我搜索了它,但没有很好的解决方案。这是我的代码的相关部分:
//compile to .jasper
String report = JasperCompileManager.compileReportToFile(sourceFileName);
//fill the report
JasperPrint jasperPrint = JasperFillManager.fillReport(report, parameter, dataSource);
//print the report
JasperPrintManager.printReport(jasperPrint, true);
我想选择一台打印机,而不是简单的 printReport。有没有办法做到这一点?
【问题讨论】:
-
我不可能是唯一一个在这个问题上苦苦挣扎的人......
标签: java reporting-services printing jasper-reports