DocumentManager.CloseDocument(String) Method
Closes the specified document.
Namespace: DevExpress.Web.Office
Assembly: DevExpress.Web.v18.2.dll
Declaration
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"));
}
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the CloseDocument(String) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
See Also