Example: Documents property

This example shows how to open a document in visible mode.

 try {
  Application application = Application.getInstance();
  Documents documents = application.getDocuments();
  Document document = documents.openDocument("D:\\test.odt", true);
 } catch(Exception e) {
   e.printStackTrace();
 }

Related information

Documents property