DocumentOperationService Class
Allows you to perform a custom operation initiated on the client.
Namespace: DevExpress.XtraReports.Web.WebDocumentViewer
Assembly: DevExpress.XtraReports.v20.2.Web.dll
NuGet Package: DevExpress.Web.Reporting.Common
Declaration
Remarks
You can call the following method on the client side to initiate a custom operation:
ASP.NET Web Forms & MVC | ASP.NET Core & JS Frameworks |
---|---|
ASPxClientWebDocumentViewer.PerformCustomDocumentOperation | JSReportViewer.PerformCustomDocumentOperation |
On the server, create a DocumentOperationService class descendant, and override its DocumentOperationService.CanPerformOperation method to specify which operations are permitted and the DocumentOperationService.PerformOperation method to perform these operations.
Register your custom class with the following method at application startup:
ASP.NET Web Forms & MVC | ASP.NET Core |
---|---|
DefaultWebDocumentViewerContainer.Register<T, TImpl> | ServiceCollectionServiceExtensions class methods - AddScoped or AddSingleton. |
For a code sample, review the following example: Web Document Viewer - How to send a report via Email from the client side.