stevelau Posted April 18, 2019 Share Posted April 18, 2019 I have developed a Jasper report and I want it to be printed in duplex without changing the settings on the printer. Is there any configuration in the JR that can print in double-sided? Link to comment Share on other sites More sharing options...
hozawa Posted April 18, 2019 Share Posted April 18, 2019 Unfortunately, no. Duplex pring is a feature of a printer and is printer specific.However, it is easy to customize JasperReports to enable exporting to pdf that merges different layout report on each side of the paper. Unfortunately, other export types such as xlsx does not support it so it's a customer specific modification and can not be a general feature addition to JasperReports. Link to comment Share on other sites More sharing options...
C-Box Posted April 24, 2019 Share Posted April 24, 2019 It should be just an flag within the PrintRequestAttributeSet when I remember right. So you needn't to change the Printer settings in generall. So this is always the decission of the user how a JasperPrint will be sent to the printer and not defined in the design mode. (also like in MS Word... you PRINT it duplex and don't set an option to the word doc itself!)Something like.attr.add(Sides.TWO_SIDED_LONG_EDGE);hth + regardsC-Box Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now