This example opens several spreadsheets and saves all of them.
try { Application application = Application.getInstance(); Spreadsheets spreadsheets = application.getSpreadsheets(); Spreadsheet spreadsheet1 = spreadsheets.openSpreadsheet("D:\\test.ods", true); Spreadsheet spreadsheet2 = spreadsheets.addSpreadsheet("D:\\test.ots", false,true); Spreadsheet spreadsheet3 = spreadsheets.openSpreadsheet("D:\\test3.ods", true); ... spreadsheets.saveSpreadsheets(); } catch(Exception e) { e.printStackTrace(); }
Related information