You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Abrar Hussain <fa...@gmail.com> on 2008/06/02 14:09:43 UTC

File in updating by using HSSFWorkbook in event user model

Hi,

I am getting problem while writing data on excel file in event user model. I
am opening FileOutputStream in appned (true) mode but every time when I
write data on file it is over written. Can anybody help me.

		FileOutputStream fos = new FileOutputStream(this.dirPath + this.fileName,
true);
		HSSFWorkbook wb = new HSSFWorkbook();
		HSSFSheet sheet = wb.createSheet("Sheet1");

                .......
                wb.write(fos);
                fos.flush();
                fos.close();
 

Thanks in advance.
-- 
View this message in context: http://www.nabble.com/File-in-updating-by-using-HSSFWorkbook-in-event-user-model-tp17599811p17599811.html
Sent from the POI - User mailing list archive at Nabble.com.


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