Created attachment 23285 [details] Sample generated file The .xls files created with the 3.5 beta cannot be read on BlackBerry or by Google applications. Both Google's client on mobile and the "View as HTML" feature in Gmail report that file as corrupted. Excel and Google Docs can read the file. This can be reproduced with the simplest of files: HSSFWorkbook wb = new HSSFWorkbook(); HSSFSheet sheet = wb.createSheet("test"); FileOutputStream fos = new FileOutputStream("/tmp/blah.xls"); wb.write(fos); fos.close();
To be clear, the BlackBerry viewer cannot read the file either; the problem isn't limited to Google code. Thanks.
How did you send the xls to your device? What mimetype does the gmail client report for the attachment?
Thanks for jumping on this so quickly. > How did you send the xls to your device? I've put the file on the device in multiple ways: an email attachment through both the Gmail client and the BlackBerry client, and via download through the browser. To rule out transmission quirks, I confirmed that an Excel-generated file put on the device through the same methods works fine. > What mimetype does the gmail client report for the attachment? The Google client doesn't show a mime type that I could see, but the http headers in the download show: Content-Type: application/vnd.ms-excel One other point to clarify -- the testing with Google's "View as HTML" was done on a PC, not on a BlackBerry. Actually, it's a server-side error from Google so the PC doesn't matter, but the important element is that I tried to make sure the problem wasn't BlackBerry-specific. Otherwise I'd probably have filed the defect with RIM instead. :-)
Updated the platforms. Excel files generated on Linux exhibit this problem, and readers on multiple platforms fail when accessing the files.
Current POI and current Google Mail work together well both with the simple sample file attached as well as with more complex documents produced by POI, I think this is fixed either on the side of POI or Google, sorry, but cannot test on BlackBerry. I am resolving this for now, please reopen with fresh samples if it still does not work for you.