This example creates a spreadsheet in visible mode.
try { Application application = Application.getInstance(); Spreadsheets spreadsheets = application.getSpreadsheets(); Spreadsheet spreadsheet = spreadsheets.addSpreadsheet("", false,true); } catch(Exception e) { e.printStackTrace(); }
This example creates a spreadsheet based on a template.
try { Application application = Application.getInstance(); Spreadsheets spreadsheets = application.getSpreadsheets(); Spreadsheet spreadsheet = spreadsheets.addSpreadsheet("D:\\test.ots", false,true); } catch(Exception e) { e.printStackTrace(); }
Related information