poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Laubach Shawn Contr OC-ALC/PSB <Shawn.Laub...@tinker.af.mil>
Subject RE: Header/Footer question
Date Wed, 12 Feb 2003 14:27:09 GMT
HSSFWorkbook wb = new HSSFWorkbook();
HSSFSheet sheet = wb.createSheet("new sheet");

HSSFHeader header = sheet.getHeader();
header.setCenter("Center Header");
header.setLeft("Left Header");
header.setRight(HSSFHeader.font("Stencil-Normal", "Italic") + 
                HSSFHeader.fontSize((short) 16) + "Right w/ Stencil-Normal
Italic font and size 16");

Shawn

-----Original Message-----
From: DRINKARD, JAMES E (SBCSI) [mailto:jd4147@sbc.com]
Sent: Wednesday, February 12, 2003 7:40 AM
To: 'poi-user@jakarta.apache.org'
Subject: Header/Footer question
Importance: High


Hello All,
How do I set a simple header/footer with hssf? I reviewed the api and docs,
but don't see any valid examples. I have been able to create a workbook,
sheet, rows and cells without any problems.

James

James Drinkard
SBC Online
1010 Pine St. 10-W-37
St. Louis, MO 63101
Work: (314) 331-2860
Pager: (877) 717-0418 
Text Pager: http://www.arch.com


---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: poi-user-help@jakarta.apache.org

Mime
View raw message