# Class: OpenDocumentCmd

## OpenDocumentCmd()

Implementation of local command `openDocument`.

## Constructor

#### new OpenDocumentCmd()

Source:
  - cmd/OpenDocumentCmd.js, line 5

### Classes

OpenDocumentCmd

### Methods

#### openRemoteFile(docView, remoteURI, readOnly) → {Promise}

Open specified remote document in a new browser window/tab.

Redefine this method if for example, the document is to be opened in a new application tab.

##### Parameters:

Name | Type | Description
--- | --- | ---
`docView` | DocumentView | the `DocumentView` from which this command in invoked.
`remoteURI` | string | the URI of the document to be opened.
`readOnly` | boolean | specifies whether it must be opened in read-only mode.

Source:
  - cmd/OpenDocumentCmd.js, line 73

##### Returns:

A Promise containing a CommandResult.

Type
  Promise