A newer version of this page is available. Switch to the current version.

DocumentManager.CloseAllDocuments() Method

Closes all open documents.

Namespace: DevExpress.Web.Office

Assembly: DevExpress.Web.v18.2.dll

Declaration

public static void CloseAllDocuments()
Public Shared Sub CloseAllDocuments

Remarks

The CloseAllDocuments clears all the session parameters, including the Rich Text Editor/Spreadsheet settings. These settings are used to restore all the Rich Edit/Spreadsheet settings and return a relevant partial view in a controller action. It is recommended to avoid using the CloseAllDocuments method and close only specific documents using the documents names.

Alternatively, you can open documents by passing a document name from a controller to a partial view using the View Data collection and invoking the Open method directly in the partial view.

See Also