To export a worksheet to PDF, use the Workbook.ExportToPdf method.
However, to export embedded charts, it is necessary to register the following services:
- DevExpress.XtraSpreadsheet.Services.Implementation.ChartControllerFactoryService
- DevExpress.XtraSpreadsheet.Services.Implementation.ChartImageService
The Universal Subscription or an additional Office File API Subscription is required to use this example in production code. Please refer to the DevExpress Subscription page for pricing information.
Starting with v18.1, you don't need to register chart rendering services manually when you print and export documents containing charts to PDF. The WinForms version of these services is registered automatically when you create a workbook instance.
- Program.cs (VB: Program.vb)
(you will be redirected to DevExpress.com to submit your response)