what is the exception?

the clue is usually in the exception message

veena pandit wrote:
Can someone tell me why this doesn;t work?  I am trying to open an existing
file.


String path = "c://downloads//" + "test.xls";

response.setHeader("Content-disposition", "inline;filename="+path);

// HSSFWorkbook wb = new HSSFWorkbook();

InputStream inp = *new* FileInputStream(path);

hssfWorkBook = *new* HSSFWorkbook(inp);

Should this not open an existing xls file?



Thanks,



Veena

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to