[#5559] - PageFormat used in JRPrintServiceExporter is of default printer, not selected print service.

Category:
Bug report
Priority:
Normal
Status:
New
Project: Severity:
Major
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:

When printing a report using JRPrintServiceExporter, the PrinterJob is created using PrinterJob.getPrinterJob(), and once the job has the service set on it using setPrintService(), the PageFormat held by the printer job has the dimensions of the default printer, not the print service passed in the parameters. This means that if printing to a label printer, and the default printer is an A4 printer, the printed document is of A4 size, not label printer size.

This has been replicated on Windows 7 64 bit.

asuk_samc's picture
Joined: Nov 29 2011 - 4:46am
Last seen: 11 years 6 months ago
Feedback
randomness