ReportDesignerClientSideEvents.PreviewOnExport Property
Specifies the JavaScript function that handles the PreviewOnExport event, which occurs before a request for document export is sent.
Namespace: DevExpress.XtraReports.Web
Assembly: DevExpress.XtraReports.v21.2.Web.WebForms.dll
NuGet Package: DevExpress.Web.Reporting
Declaration
Property Value
Type | Default | Description |
---|---|---|
String | String.Empty | The name of a JavaScript function or entire JavaScript function code that runs when the PreviewOnExport event occurs. |
Remarks
The PreviewOnExport event occurs before the Report Designer Preview sends a request to print the document or to get the exported document.
The request that gets the exported document and the request to print the document are GET
requests. If your application uses token-based authentication, handle the PreviewOnExport event to pass a token to the server when these requests are executed.
The handler function receives two parameters - the first parameter is the client-side Preview 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): ReportDesignerPreviewClientSideEventsBuilder.OnExport.