Iam using poi to read the data to excel file and download it.
FileOutputStream fileOut = new FileOutputStream(downloadDir + sFileName);
// setting the response to allow for download
response.setHeader("Content-Disposition", "attachment; filename=Book2.csv");
java.io.OutputStream out1 = response.getOutputStream();
I am having the issue when I try and open it when Excel is NOT already opened on my computer. The system responder message is:
'C:/Documents and Settings/vasavi/Local Settings/Temporary Internet Files/COntent.IE5Y6RT7BTBBook2.csv' could not be found. Check the spelling of the file name, and verify that the file location
If you are trying to open the file from your list of most recently used files on the File menu, make sure that the file has not been
renamned, moved, or deleted.