Skip to main content

DocumentOperationService Class

Allows you to perform a custom operation initiated on the client.

Namespace: DevExpress.XtraReports.Web.WebDocumentViewer

Assembly: DevExpress.XtraReports.v22.1.Web.dll


public class DocumentOperationService


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, you should create a DocumentOperationService class descendant, and override its DocumentOperationService.CanPerformOperation method to define which operations are permitted and the DocumentOperationService.PerformOperation method to perform the operation.

You should register your custom class with the following method at the 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.


See Also