Category: | Bug report |
Priority: | Normal |
Status: | New |
Project: | Severity: | Minor |
Resolution: | Open |
|
Component: | Reproducibility: | Always |
Assigned to: |
Issue: Using version 5.6 and scheduling a report and selecting pdf and xls as output options. The output sent via the scheduler always results in blank results for the pdf while the xls has the correct data. When I run the scheduler again and this time only select pdf, the results sent via scheduler are correctly formatted and showing up in pdf.
In more testing found that if I scheduled a report with PDF and CSV selected, both outputs came out with all results printed. So far, the PDF is only blank if I also select an excel output that is NOT paginated (the paginated options when selected with PDF worked with correct results).
Output formats selected:
Formats PDF output was blank
PDF + xls yes
PDF + xls yes
PDF + xls paginated no
PDF + xlsx paginated no
PDF + all other non excel choices no
1 Comment:
Perhaps a related problem is that instead of a blank page, I was getting a pdf without any page breaks.
My work around was to add <property name="ignorePagination" value="false"/> to the pdfOutput bean in applicationContext-report-scheduling.xml
Patch:
--- applicationContext-report-scheduling.xml.orig 2014-08-28 14:26:44.802835028 -0700
+++ applicationContext-report-scheduling.xml 2014-08-28 14:29:01.606835216 -0700
@@ -374,6 +374,7 @@
<bean id="pdfOutput" class="com.jaspersoft.jasperserver.api.engine.scheduling.quartz.PdfReportOutput" parent="baseReportJobExportOutput">
<property name="exportParams" ref="jobPdfExportParameters"/>
+ <property name="ignorePagination" value="false"/>
</bean>
<bean id="htmlOutput" class="com.jaspersoft.jasperserver.api.engine.scheduling.quartz.HtmlReportOutput" parent="baseReportJobExportOutput">
<property name="compress" value="true"/>