Share a Document
- 2 minutes to read
In This Article
ASPxSpreadsheet allows multiple users to access the same instance of a document at the same time. These situations may occur in the following cases:
- Multiple users open a document from a common shared document folder on the server file system.
- Multiple users open a document from the open document storage with the same DocumentId.
The collaboration feature is convenient for working with a document on multiple devices. For instance, a user can start to work with a document on a desktop and continue on a mobile device. However, we do not recommend that you use ASPxSpreadsheet in multi-user edit mode because users are able to overwrite each other’s changes.
#Limitations
- Users do not receive notifications about changes made by other users. You need to update the page to see the changes.
- Users can access a document’s content copied by another user.
- All users share the document’s history of changes. A user can undo the changes made by another user.
- When you explicitly close a document, every user who works with this document receives the “Your session has expired” error on an attempt to refresh the document.
#Prevent Document Sharing
Use one of the following techniques to prevent document sharing:
- If documents are opened from the server’s file system, place user documents into different work folders (specified by the WorkDirectory property) for different users.
- If users open the same document from a custom document storage, open a unique copy of the document (specify a unique DocumentId) for each user.
- Open a document as a template.