openDocument method

This method opens a document.

Defined in

Documents

Syntax

public Document openDocument(String fileName, boolean visible) throws SymphonyException

Parameters

String fileName

Specifies the name of the document to be opened. For example, on Microsoft® Windows®, the format is D:\\test.odt. On Linux®, the format is /home/me/test.odt. If the document does not exist or is an unsupported file type, this method throws an exception.

boolean visible

Specifies true to open the document in a visible window or tab, or false to open the document in invisible mode.

Return Value

document

A Document object that represents the opened document.

Usage

This method can open .odt, .ott, .doc, .rtf, and .txt files.

See examples

Example: openDocument method