2006 IR Open Dicussion Posted August 26, 2006 Share Posted August 26, 2006 By: Seung-ho Yeom - yeomsh In the Excel printer setup 2006-02-02 20:06 The print area of the jasper file which becomes to the A4 size is changed to the letter size from Excel in a conversion. Manually, the print area has to be changed into A4 but the method for changing into the A4 size automatically does not have the print area? By: JonHoover - jonhoover RE: In the Excel printer setup 2006-02-07 01:58 Hi, I´ve had the same Problem. And I was not able to find how to set the pagesize for a couple of days. So I decided to patch the code. I´ve added 2 lines in the JRXlsExporter: protected void createSheet(String name) { sheet = workbook.createSheet(name); // added HSSFPrintSetup ps = sheet.getPrintSetup(); ps.setPaperSize(HSSFPrintSetup.A4_PAPERSIZE); } This workaround is not the best one, but there was no time left. 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