i need to generate a file in a popup after converting to the excel file. i'm using apache poi for this.
Here is my code:
try {
FileInputStream file = new FileInputStream(new File("C:\\update.xls"));
**excel coding here..**
file.close();
FileOutputStream outFile =new FileOutputStream(new File("C:\\update.xls"));
workbook.write(outFile);
outFile.close();
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
what can i do in the FileOutputStream or something else and let user save it wherever they want?