JasperPrint print = JasperFillManager.fillReport(jasperReport, new HashMap<String, Object>() put("DateRange", "LAST_30_DAYS"); , new JREmptyDataSource());
Assume you want to use the ReportDateRangeScriptlet (a hypothetical extension for handling report date ranges). Here’s a minimal example: jasperreports-extensions-3.5.3.jar download