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(); new File( "StolleExcel.xls" ) );



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?


source to share

All Articles