Jump to content
We've recently updated our Privacy Statement, available here ×

In the Excel printer setup


Recommended Posts

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

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...