This example opens 3 presentations and displays the second presentation's name.
try { Application application = Application.getInstance(); Presentations presentations = application.getPresentations(); Presentation pre1 = presentations.openPresentation("D:\\test.odp", true); Presentation pre2 = presentations.openPresentation("D:\\test2.odp", true); Presentation pre3 = presentations.openPresentation("D:\\test3.odp", true); System.out.println(presentations.item(2).getName()); } catch(Exception e) { e.printStackTrace(); }
Related information