Example: saveSpreadsheet method

This example shows how to save a spreadsheet.

try {
  Application application = Application.getInstance();
  Spreadsheets spreadsheets = application.getSpreadsheets();
  Spreadsheet spreadsheet = spreadsheets.openSpreadsheet("D:\\test.ods", true);
  ...
  spreadsheet.saveSpreadsheet();
} catch(Exception e) {
  e.printStackTrace();
}

Related information

saveSpreadsheet method