Closes all open documents.
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.