ASPxClientWebDocumentViewer.PerformCustomDocumentOperation() Method

Performs a custom operation with a currently opened document on the client side.

Namespace: DevExpress.XtraReports.Web.Scripts

Assembly: DevExpress.XtraReports.v18.2.Web.Scripts.dll


public JQueryPromise<ASPxClientWebDocumentViewerDocumentOperationResponse> PerformCustomDocumentOperation()
Public Function PerformCustomDocumentOperation As JQueryPromise(Of ASPxClientWebDocumentViewerDocumentOperationResponse)


Type Description

A Deferred Promise object.


Call the PerformCustomDocumentOperation method on the client side to perform the required operation with the current report document.

On the sever side, create a DocumentOperationService class descendant and override its DocumentOperationService.CanPerformOperation and DocumentOperationService.PerformOperation methods. To register your custom class, use the DefaultWebDocumentViewerContainer.Register<T, TImpl> method at the application startup.

For a code sample, refer to Web Document Viewer - How to send a report via Email from the client side.

See Also