Example: Count property

This example opens several presentations and displays the count of presentations opened in Lotus Symphony.

try {
  Application application = Application.getInstance();
  Presentations presentations = application.getPresentations();
  Presentation pre1 = presentations.openPresentation("D:\\FileTypeAssociation\\test.odp", true);
  Presentation pre3 = presentations.openPresentation("D:\\FileTypeAssociation\\test2.odp", true);
  System.out.println(presentations.getCount());
} catch(Exception e) {
  e.printStackTrace();
}

Related information

Count property