Hello.
It is again some Unicode bug. (appears with unicode sheet name) :(
> Does it work if you read it with another method?
> What's the stack trace?
>
> Regards,
> Glen
POIFSFileSystem fs = new POIFSFileSystem(new
FileInputStream("empty_workbook.xls"));
HSSFWorkbook wb = new HSSFWorkbook(fs);
HSSFSheet sheet = wb.getSheetAt(0);
HSSFRow row = sheet.getRow(2);
if ( row == null )
row = sheet.createRow( 2 );
HSSFCell cell = row.getCell((short)3);
if (cell == null)
cell = row.createCell((short)3);
cell.setCellType(HSSFCell.CELL_TYPE_STRING);
cell.setCellValue("a test");
// Write the output to a file
FileOutputStream fileOut = new
FileOutputStream("full_workbook.xls");
wb.write(fileOut);
fileOut.close();
The sample above works fine. The stack trace I have attached to the
BUG#11010
> show me the code you used to create it, attach the sheet created to a
> bug, show me the code you used to read it.
All this info I have attached to the bugreport.
I am looking at the code, but I have not studied it to make a patch, yet.
> Sergei Kozello wrote:
>
> >Hello.
> >
> >I have found that if I create one Excel sheet without any data and then
try to read it with eventmodel. It failes.
> >
> >The MS Excel opening the file correctly.
> >
> >
> >Sergei Kozello.
> >
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>