DocumentManager.CloseDocument(String) Method

Closes the specified document.

Namespace: DevExpress.Web.Office

Assembly: DevExpress.Web.v20.1.dll

Declaration

public static void CloseDocument(
    string documentId
)
Public Shared Sub CloseDocument(
    documentId As String
)

Parameters

Name Type Description
documentId String

A string value specifying the unique identifier of a document.

Remarks

using DevExpress.Web.Office
...
protected void Page_Load(object sender, EventArgs e)
{
    if (!System.Web.UI.Page.IsPostBack)
    {
        RichEdit.Open(System.Web.UI.Page.Server.MapPath("~/App_Data/Styles.rtf"));
        RichEdit.DocumentId = "TestID";
    }
}
protected void RichEdit_Callback(object sender, DevExpress.Web.CallbackEventArgsBase e)
{
    DocumentManager.CloseDocument("TestID");
    RichEdit.Open(System.Web.UI.Page.Server.MapPath("~/App_Data/Styles.rtf"));
}
See Also