Back to Devexpress

Close a Document

aspnet-403374-components-spreadsheet-document-management-close-a-document.md

latest1.4 KB
Original Source

Close a Document

  • Nov 16, 2021

ASPxSpreadsheet does not close a document when you open another document or even when you leave a page with the control. The document storage retains the document until it is hibernated and then removed from the memory after a dispose timeout. If the hibernation is disabled, the document remains in the storage until IIS process recycling occurs.

You can call the following methods to close a document explicitly:

When you close a document, DocumentManager closes it for all users who work on the document. It can cause NullReferenceException and “Your session has expired” errors. To avoid these errors, close unshared documents only.