Skip to main content

RichEditExtension.Open(String, DocumentFormat) Method

Opens a document in the specified format from a file system.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.1.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public RichEditExtension Open(
    string filePath,
    DocumentFormat format
)

Parameters

Name Type Description
filePath String

The path to a document to open.

format DocumentFormat

The document format.

Returns

Type Description
RichEditExtension

An object representing the RichEdit extension.

Remarks

Call this Open method to open a document from the server’s file system. When you open a document for the first time, the control loads it to the server’s memory and generates a DocumentId from the filePath parameter value.

If the document is already open, the method activates the document stored in the server’s memory.

See Also