Results 1 to 4 of 4
- 05-09-2010, 10:33 AM #1
Member
- Join Date
- May 2010
- Posts
- 2
- Rep Power
- 0
Problem with JXL: unable to read GSEA xls file
Hi all,
I'm using JXL libraries to read some output file of a bioinformatics software called GSEA. These files are all written in a folder produced by the sw.
I've used the following code to read:
WorkbookSettings wsUp = new WorkbookSettings();
wsUp.setLocale(new Locale("en", "EN"));
Workbook workbookUp=null;
Sheet s = null;
workbookUp = Workbook.getWorkbook(ee.filesUp.get(i),wsUp);
s = workbookUp.getSheet(0);
But Eclipse can't open the file returning:
jxl.read.biff.BiffException: Unable to recognize OLE stream
And the computation is stopped on getWorkbook line
Someone knows when this error is present what I have to do on the excel file preliminarly?
Thanks
- 05-09-2010, 10:49 AM #2
i don't know what ee.filesUp.get(i) returns, but try
File file = new File ("drive\\path\\yourfile.xls");
workbookUp = Workbook.getWorkbook(file, wsUp);
it would be easier if you post all your code. the reason for the BiffException could be, that the xls files has been written with an older version of excel 2003.Last edited by j2me64; 05-09-2010 at 11:01 AM.
- 05-09-2010, 11:08 AM #3
Member
- Join Date
- May 2010
- Posts
- 2
- Rep Power
- 0
- 05-10-2010, 12:53 PM #4
looking at the jxl api i couldn't find any methods for reading csv files. but you can read csv files in java with the classes in java.io and then extract the values with a tokenizer and then build your workbook with jxl and put the readed values to the workbook.
Similar Threads
-
Unable to Print more than 1 File
By satyam000 in forum AWT / SwingReplies: 5Last Post: 11-24-2009, 05:59 AM -
Unable to access velocity.properties file from jar file
By mjwoodford in forum New To JavaReplies: 0Last Post: 10-09-2009, 01:46 PM -
how to read openproj(Projity) file i.e. ,POD file(Project Management file)
By mahendra.athneria in forum New To JavaReplies: 0Last Post: 02-11-2009, 09:53 AM -
Unable to read data from inputstream
By renuka_anil in forum Java ServletReplies: 0Last Post: 01-29-2009, 03:20 PM -
java.io.IOException: Unable to read entire block; 493 bytes read before EOF; expected
By kushagra in forum New To JavaReplies: 5Last Post: 10-17-2008, 02:13 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks