DocumentManager.FindDocument(String) Method
Finds a document by its identifier.
Namespace: DevExpress.Web.Office
Assembly: DevExpress.Web.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
public static IDocumentInfo FindDocument(
string documentId
)
#Parameters
Name | Type | Description |
---|---|---|
document |
String | The document identifier. |
#Returns
Type | Description |
---|---|
IDocument |
An object that define the found document. |
#Remarks
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");
ASPxRichEdit1.Open(documentInfo);
Note
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 IDocumenttrue
to download the target document’s and access all the Rich