Hi all,
I'm creating an Excel file with HSSF. I'm trying to set the fit to page option using
using the following code:
HSSFSheet sheet = wb.createSheet("Performance Report");
// Set various print options to fit to page
sheet.getPrintSetup().setFitWidth((short)1);
sheet.getPrintSetup().setFitHeight((short)99);
sheet.setFitToPage(true);
I save the file and open it with Excel. Looking in the page setup dialog box, the fit
to page parameters are correctly set to 1 and 99, but the Fit to: radio button is not
chosen. I also tried reversing the order (calling setFitToPage first) with the same
results. Am I doing something wrong?
I'm using POI version 1.8 Dev, but it didn't work with version 1.5 either.
Thanks in advance.
Ted Gordon
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>