Skip to content

This example handles the XlSheetCreated document event to pass custom data to the exported worksheet. The example shows how to recover document event handlers that are lost when the document is cached.

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/reporting-web-cacheddocumentsource-custom-data

Repository files navigation

Reporting for ASP.NET Core - How to Manage Events of a Cached Document and Pass Custom Data to the Exported Document

This example creates and registers a descendant of our WebDocumentViewerOperationLogger class to attach the XlSheetCreated event handler to the document.

This example also illustrates the technique used to restore event handlers after a document is serialized in the cache and all event handlers are detached.

Run the application and select Export to XLSX:

Export to XLSX

The product category is used to rename worksheets in the exported XLSX file. The category is displayed in the report on the page from which the worksheet originated.

Exported XLS file with Renamed Worksheets

Files to Review

Documentation

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

About

This example handles the XlSheetCreated document event to pass custom data to the exported worksheet. The example shows how to recover document event handlers that are lost when the document is cached.

Topics

Resources

License

Stars

Watchers

Forks