In HSSFSheet do a getPrintSetup which returns HSSFPrintSetup.  Inside this
call setLandscape(true), i.e.

HSSFPrintSetup ps = sheet.getPrintSetup();
ps.setLandscape(true);

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: Paul Lee [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 10:49 AM
To: POI Users List
Subject: POI Newbie question about hssf.records.*



Hello, I have posted this question last week but I am still struggling with
it so any help will be greatly appreciated.

My goal is to create a spreadspeet with the landscape printing option set.
I figured that it is a flag in the PrintSetupRecord. However I don't see any
API's in the HSSFWorkbook or HSSFSheet class to modify the PrintSetupRecord.
Can someone give me some pointers?

Thanks in advance,

Paul


--

This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to