I'm trying to get some examples out but here is how you do it.
HSSFSheet sheet = book.createSheet("Sheet");
HSSFPrintSetup ps = sheet.getPrintSetup();
ps.setFitHeight((short)1);
ps.setFitWidth((short)1);
sheet.setAutobreaks(true); //Required to do the checkbutton
Shawn Laubach
SAIC - Web Developer
B-1B System Support Management Division
OC-ALC/LAB, Building 3001, Tinker AFB, Oklahoma
dsn: 336-2473 comm: 405-736-2473 mobile: 405-245-9562
-----Original Message-----
From: g.spellauge [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 30, 2002 1:22 AM
To: [EMAIL PROTECTED]
Subject: HSSFPrintSetup.setFitWidth, .setFitHeight
hi,
using the methods HSSFPrintSetup.setFitWidth and .setFitHeight don't
work for me.
when i opened the generated workbook using execl, checked the printsetup
i discovered that the parameters are correctly set. but the checkbutton
left of them is unchecked.
did i miss anything ?
g.spellauge
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>