Olá a todos!
Eu achei exemplos na net de código que imprime mais de um trabalho de impressão e os grampeia juntos, mas isso não funcionou.
Alguém já conseguiu fazer isso com sucesso?
Meu código está mais ou menos assim (não estou listando tudo aqui):
printRequestAttributeSet.add(MultipleDocumentHandling.SINGLE_DOCUMENT);
printRequestAttributeSet.add(Finishings.STAPLE);
exporter.setParameter(JRPrintServiceExporterParameter.PRINT_SERVICE, printService);
exporter.setParameter(JRPrintServiceExporterParameter.PRINT_REQUEST_ATTRIBUTE_SET, printRequestAttributeSet);
exporter.setParameter(JRPrintServiceExporterParameter.DISPLAY_PAGE_DIALOG, Boolean.FALSE);
exporter.setParameter(JRPrintServiceExporterParameter.DISPLAY_PRINT_DIALOG, Boolean.FALSE);
exporter.setParameter(JRPrintServiceExporterParameter.JASPER_PRINT_LIST, jasperPrint);
exporter.exportReport();