Hi All,
I can able to create a excel file using POIFS plug-in from Jakarta, but i want open already created file from a selected location.
Here i am pasting my code to generate excel file.
esponse.setCont entType("applic ation/vnd.ms-excel");
PrintWriter out = response.getWri ter();
String filepath="E:/share/PAR.xls";
response.setHea der("Content-Disposition", "attachment ; filename="+file path+";");
HSSFWorkbook wb = new HSSFWorkbook();
FileOutputStrea m fileOut = new FileOutputStrea m("E/share/ISO-PAR.xls");
wb.write(fileOu t);
fileOut.close() ;
out.close();
Please anyone suggest me, how to open a file from selected location from browser.
Regards,
Selva
I can able to create a excel file using POIFS plug-in from Jakarta, but i want open already created file from a selected location.
Here i am pasting my code to generate excel file.
esponse.setCont entType("applic ation/vnd.ms-excel");
PrintWriter out = response.getWri ter();
String filepath="E:/share/PAR.xls";
response.setHea der("Content-Disposition", "attachment ; filename="+file path+";");
HSSFWorkbook wb = new HSSFWorkbook();
FileOutputStrea m fileOut = new FileOutputStrea m("E/share/ISO-PAR.xls");
wb.write(fileOu t);
fileOut.close() ;
out.close();
Please anyone suggest me, how to open a file from selected location from browser.
Regards,
Selva
Comment