poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davis Varkey Koottala <da...@sg.systemaccess.com>
Subject Unable to open created excel file
Date Thu, 15 Mar 2007 11:07:15 GMT
Hi All,

I am unable to open the excel file which is created programatically.  This 
is what I am doing :

fileIn = new FileInputStream("test.xls");
POIFSFileSystem fs = new POIFSFileSystem(fileIn);
 
HSSFWorkbook test = new HSSFWorkbook(fs);
test.removeSheetAt(2);

 fileOut = new FileOutputStream("D:\\Workshop\\poi\\excel 
Utility\\workbookout.xls");
 test.write(fileOut);

After writing the file, when I open it, it just open the file poping up 
the microsoft standard error dialog.

Your help is much appreciated.

Regards,
Davis

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message