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

Reply via email to