Heres the stuff:

Shamelessly ripped from the test class:
                // create a new workbook
                HSSFWorkbook wb = new HSSFWorkbook();
                // create a new sheet
                HSSFSheet theSheet = wb.createSheet();
                // declare a row object reference
                HSSFRow theRow = null;
                // declare a cell object reference
                HSSFCell theCell = null;
                // create cell style
                HSSFCellStyle cs = wb.createCellStyle();
                // create font object
                HSSFFont f = wb.createFont();
                f.setFontHeightInPoints((short) 10);
                //set cell stlye
                cs.setFont(f);

Then to write it out:
                File file = new File(fileRoot+"export.xls");
                FileOutputStream out = new FileOutputStream(file);
                wb.write(out);

Straight and simple... and probably wrong.

thanks,
-Jared

-----Original Message-----
From: Andrew C. Oliver [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 3:53 PM
To: POI Users List
Subject: Re: Cell content not saving


Show me the code you used to instantiate the workbook and write it back 
to disk.

-Andy.

Jared Walker wrote:
<-----SNIP---->


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

Reply via email to