This example shows how to serialize user data along with the document and use that data after the document is deserialized.
The application registers the WebDocumentViewerOperationLogger class descendant to save, load and process user data. The overridden CachedDocumentSourceSerializing method gets the category IDs displayed on a certain page and serializes them as custom data along with the document. The overridden CachedDocumentSourceDeserialized method retrieves custom data from the document and uses the category IDs obtained from the custom data to name the worksheets when exporting the document to XLS or XLSX format.
- Global.asax.cs (Global.asax.vb)
- CustomWebDocumentViewerOperationLogger.cs (CustomWebDocumentViewerOperationLogger.vb)
- CustomPageDataService.cs (CustomPageDataService.vb)
- CategoriesReport.cs (CategoriesReport.vb)
- Reporting for Web (ASP.NET MVC) - How to Display the Name of the Current Logged in User in a Report
- How to implement a custom authorization service
(you will be redirected to DevExpress.com to submit your response)