You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by hasan kantar <ha...@hotmail.com> on 2012/06/13 15:03:13 UTC

İlet: Excel document that created with poi 3.8 can't be open blackberry , iphone (unrecognized file format error)

is there any idea 
Sent by Vodafone powering my BlackBerry® smartphone.

-----Original Message-----
From: hasan kantar <ha...@hotmail.com>
Date: Tue, 12 Jun 2012 19:42:04 
To: <us...@poi.apache.org>
Subject: Excel document that created with poi 3.8 can't be open blackberry ,
 iphone (unrecognized file format error)



 I have created excel 2007 file and send mail to user. When user open the attahced excel file with blackberry or iphone , he/she sees it is unrecognized file format error. But user can open same file on pc without error.    private Workbook wb=null;
     private Sheet sh=null;
     private Row row=null;  wb = new SXSSFWorkbook(-1); // turn off auto-flushing and accumulate all rows in memory
  sh = wb.createSheet("MySheet"); row = sh.getRow(0); Cell cell = row.createCell(0);
  cell.setCellValue("test value");  FileOutputStream out = new FileOutputStream("c:\\test.xlsx");
 wb.write(out);
  out.close();
 
 Bu mesaj ve ekleri, mesajda gonderildigi belirtilen kisi/kisilere ozeldir ve gizlidir. Bu mesajin muhatabi olmamaniza ragmen tarafiniza ulasmis olmasi halinde mesaj iceriginin gizliligi ve bu gizlilik yukumlulugune uyulmasi zorunlulugu tarafiniz icin de soz konusudur. Mesaj ve eklerinde yer alan bilgilerin dogrulugu ve guncelligi konusunda gonderenin herhangi bir sorumlulugu bulunmamaktadir. Gönderen mesajin ve bilgilerinin size degisiklige ugrayarak veya gec ulasmasindan, butunlugunun ve gizliliginin korunamamasindan, virus icermesinden ve bilgisayar sisteminize verebilecegi herhangi bir zarardan sorumlu tutulamaz.
                                       

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


Re: İlet: Excel document that created with poi 3.8 can't be open blackberry , iphone (unrecognized file format error)

Posted by Nick Burch <ni...@alfresco.com>.
On Wed, 13 Jun 2012, hasan kantar wrote:
> is there any idea

If you load the file in excel, and do a save-as, does that fix it? If so, 
what gets changed in the process?

Do you know what software/library is being used on the phones to read 
excel files? Are there any known bugs with it? How does it cope with excel 
files produced by other non-Excel software? (eg the perl spreadsheet 
writer module)

Nick

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