This example opens a spreadsheet, a presentation, and a document, and then shows the active document's name.
import com.ibm.symphony.javaapi.Application; public class ApplicationExample { public void example() { try { Application application = Application.getInstance(); application.getSpreadsheets().openSpreadsheet( "D:\\FileTypeAssociation\\test.ods", true); application.getPresentations().openPresentation( "D:\\FileTypeAssociation\\test.odp", true); application.getDocuments().openDocument( "D:\\FileTypeAssociation\\test.odt", true); System.out.println(application.getActiveDocument().getName()); } catch (Exception e) { e.printStackTrace(); } } }
Related information