Opening with Excel without saving the file with Apache Poi

I am using Apache Poi to create an Excel file from a JTable.

I want to open the file directly in Excel rather than write it to disk first and then open it from disk.

FileOutputStream output = new FileOutputStream( StolleExcel.xls" );
workBook.write( output );

Desktop dt = Desktop.getDesktop();
dt.open( new File( "StolleExcel.xls" ) );

output.close();

      

Is there a temporary way to save the Excel object and then just open it with Excel so that the user can save or edit whatever they want?

+3
java excel apache-poi


source to share


No one has answered this question yet

Check out similar questions:

1786
How to create Excel file (.XLS and .XLSX) in C # without installing Microsoft Office?
3
Java Apache POI Opening File?
2
Apache POI Excel - find and replace text
2
Save Apache POI Excel Document
2
Apache POI: is it possible to use SXSSF without temporary files?
2
Apache POI Enable editing excel
1
Writing list instance to Excel file - Apache POI
1
Apache POI: update existing Excel file with many formulas without evaluation
1
Apache POI: how to avoid overwriting existing excel file
0
the excel file pops up instead of saving inside itself in apache poi



All Articles
Loading...
X
Show
Funny
Dev
Pics