Skip to content

Use the Spreadsheet Document API to export a worksheet with embedded charts to PDF.

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/spreadsheet-document-api-export-worksheet-with-embedded-charts-to-pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spreadsheet Document API - Export a Worksheet with Embedded Charts to PDF

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.

Files to Review