Posts

Showing posts with the label jasper-reports

How to compare returned values from two tables in jasper reports?

How to compare returned values from two tables in jasper reports? I have two tables in jasper reports. I want to compare the returned value from these two tables. But, when getting the datas from tables it cannot be assigned to variables in main report. Is there any way to do so? By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

How to change Jasper report Print name

How to change Jasper report Print name When I send the jasper report to print, the printer shows the document name as "jasper report-report name" (When there is a printing que, document name is also "jasper report" ). How can I change it to another name? 3 Answers 3 The sample: JasperReport jasperReport = JasperCompileManager.compileReport(reportSource); JasperPrint jrPrint = JasperFillManager.fillReport(jasperReport, params, getDataSource()); if (reportName != null && reportName.length() > 0) { jrPrint.setName(reportName); } PrintRequestAttributeSet printRequestAttributeSet = new HashPrintRequestAttributeSet(); printRequestAttributeSet.add(MediaSizeName.ISO_A4); PrintServiceAttributeSet printServiceAttributeSet = new HashPrintServiceAttributeSet(); printServiceAttributeSet.add(new PrinterName("PDFCreator", null)); ...