You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by Shadi Al Barhouch <sh...@scs-net.org> on 2003/12/27 23:20:49 UTC

Adding cells

Hi :
I would  like to know if there any way to add cells to a spread sheet (Excel
file) before saving it into OutputStream .
For more Decleration :
Suppose I have this code :
HSSFWorkBook workbook = new HSSFWorkBook();
HSSFSheet sheet =workbook.createSheet("General");
HSSFRow row = sheet.createRow(0);
HSSSFCell cell= row.createCell(1);
cell.setString("Hello");
workbook.write(OutputStream os);
Now if I liked to set a new cell to the outputstream
How can I do that and save it to the same outputstream without corrupting
The OutputStream structure.
Best Regards
Shadi



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


Re: Adding cells

Posted by Ryan Ackley <sa...@cfl.rr.com>.
Try the user list, you might get a better answer.

-Ryan

----- Original Message ----- 
From: "Shadi Al Barhouch" <sh...@scs-net.org>
To: <po...@jakarta.apache.org>
Sent: Saturday, December 27, 2003 5:20 PM
Subject: Adding cells


> Hi :
> I would  like to know if there any way to add cells to a spread sheet
(Excel
> file) before saving it into OutputStream .
> For more Decleration :
> Suppose I have this code :
> HSSFWorkBook workbook = new HSSFWorkBook();
> HSSFSheet sheet =workbook.createSheet("General");
> HSSFRow row = sheet.createRow(0);
> HSSSFCell cell= row.createCell(1);
> cell.setString("Hello");
> workbook.write(OutputStream os);
> Now if I liked to set a new cell to the outputstream
> How can I do that and save it to the same outputstream without corrupting
> The OutputStream structure.
> Best Regards
> Shadi
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: poi-dev-help@jakarta.apache.org
>


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