Skip to main content

DocumentManager.FindDocument(String) Method

Finds a document by its identifier.

Namespace: DevExpress.Web.Office

Assembly: DevExpress.Web.v22.1.dll

NuGet Package: DevExpress.Web


public static IDocumentInfo FindDocument(
    string documentId


Name Type Description
documentId String

The document identifier.


Type Description

An object that define the found document.


The method return an RichEditDocumentInfo or SpreadsheetDocumentInfo object that contain information about the target document and allow you to operate the document on the local web-server.

var documentInfo = (RichEditDocumentInfo)DocumentManager.FindDocument("myDocumentId");


If you use an office document state provider in your web application, the returned object can only be used to close the target document using the IDocumentInfo.Close method. This behavior is caused by the fact that this method’s overload does not download the target document to the local web-server. Call this method’s overload with the loadRemoteState parameter set to true to download the target document’s and access all the RichEditDocumentInfo/SpreadsheetDocumentInfo object’s members.

See Also