This example opens a spreadsheet and displays the name of it.
try { Application application = Application.getInstance(); Spreadsheets spreadsheets = application.getSpreadsheets(); Spreadsheet spreadsheet = spreadsheets.openSpreadsheet("D:\\test.ods", true); System.out.println(spreadsheet.getName()); } catch(Exception e) { e.printStackTrace(); }
Related information