HSSF Workbook expects a file stream (or some other type of stream) -- checkout java.io.FileInputStream... Checkout the HSSF HOW-TO which has a big code sample doing just that.
http://jakarta.apache.org/poi/hssf/how-to.html There is even a UML diagram there. On Mon, 2002-03-11 at 11:46, Stelian Iancu wrote: > Hello! > > I am new to POI and I wnat to know if it possible to get the names of the > worksheets of a given Excel file. I found the HSSFWorkbook class but I don't > know how to specify the file (in my case, that is c:\extracts\tm.xls). > > Any help is appreciated! > > Regards, > -- > Stelian Iancu > -- http://www.superlinksoftware.com http://jakarta.apache.org/poi - port of Excel/Word/OLE 2 Compound Document format to java http://developer.java.sun.com/developer/bugParade/bugs/4487555.html - fix java generics! The avalanche has already started. It is too late for the pebbles to vote. -Ambassador Kosh
