WebDocumentViewerClientSideEvents.OnExport Property
Gets or sets the JavaScript function that handles the OnExport event, which occurs before a request for document export is sent.
Namespace: DevExpress.XtraReports.Web
Assembly: DevExpress.XtraReports.v24.2.Web.WebForms.dll
NuGet Package: DevExpress.Web.Reporting
#Declaration
#Property Value
Type | Default | Description |
---|---|---|
String | String. |
The name of a Java |
#Remarks
The OnExport event occurs before the Document Viewer sends a request to print the document or to get the exported document.
Note
In v23.form.
for export and print operations. The use of the Fetch API includes a unified method to pass request headers from a client to a back-end server. This eliminates the need to handle the On
event to process custom request headers for export and print operations.
The handler function receives two parameters - the first parameter is the client-side DocumentViewer object, the second parameter is the object with the following properties:
- RequestUrl
- A string that specifies the request URL.
- FormData
- A set of key-value pairs.
Refer to the following topic for an example of use (an Angular client and ASP.NET Core server-side application): WebDocumentViewerClientSideEventsBuilder.OnExport.