Skip to main content
All docs
V18.2

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

Declaration

public JQueryPromise<ASPxClientWebDocumentViewerDocumentOperationResponse> PerformCustomDocumentOperation()

Returns

Type Description
JQueryPromise<ASPxClientWebDocumentViewerDocumentOperationResponse>

A Deferred Promise object.

Remarks

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