views:

50

answers:

2

I am working on a light weight Java client library for Android mobile platform that can read and write to Excel files in .xls(BIFF) and Office 2003 XML format.

No sooner we decided to start than we got stuck with a basic question. How do we determine the format of the excel files in Java?

Please help.

Thanks.

A: 

Try this api for excel
http://www.andykhan.com/jexcelapi/tutorial.html
http://www.indijava.in/community/tutorial/JExcel-Tutorial
http://blog.taragana.com/index.php/archive/how-to-read-write-excel-spreadsheet-from-java/

zapping
thanks for the suggestions; what i really wanted is just a way to determine the format of the files
Samuh
A: 

I guess I would just parse the file using an XML parser and if I dont get an Exception I will infer that it is an XML.

Samuh