Morning Hans A couple of things that you can try;
Make sure that the file is accessible from your machine. Make sure that you are passing the complete path and file name so that the file can be located. Make sure that the template file is in the correct format - i.e. that it is basically a .xls file with only the extension changed to reflect the fact that it is a template. --- On Fri, 6/27/08, hans <[EMAIL PROTECTED]> wrote: From: hans <[EMAIL PROTECTED]> Subject: org.apache.poi.hssf.record.RecordFormatException: Unable to construct record instance To: [email protected] Date: Friday, June 27, 2008, 10:41 AM Hi, It's first time i'm using poi. I'm getting the next error when i try to open a worksheet: org.apache.poi.hssf.record.RecordFormatException: Unable to construct record instance POIFSFileSystem fs = new POIFSFileSystem(new FileInputStream( templateWorksheet)); wb = new HSSFWorkbook(fs); The call to the constructor "wb = new HSSFWorkbook(fs);" fails. I searched the lists for some clues, and the worksheet don't use auto filters or selections lists, things i read where a problem. For security reasons i can't send the worksheet to the list, but if someone contact me it's possible. I'm using the last version of poi: poi-src-3.0-FINAL-20070503.tar.gz Thank you Hans -- Open WebMail Project (http://openwebmail.org) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
