I'm trying to create an Excel sheet and then change its page setup to
landscape orientation.  I've tried numerous variations of the following
code, but it gives me an error saying that it doesn't know what method
getPrintSetup() is.  I'm including org.apache.poi.hssf.usermodel.*  I'm not
a java whiz, so I could be doing this all wrong.  Could someone show me an
example of how to do this?  I'm using POI v1.5.  Do I need a newer version?

HSSFWorkbook wb = new HSSFWorkbook();
HSSFSheet sheet = wb.createSheet("test");
sheet.getPrintSetup().setLandscape(true);

Thanks a lot for any help,
Matt

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

Reply via email to