Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 2.43 KB

File metadata and controls

30 lines (20 loc) · 2.43 KB

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

Does this example address your development requirements/objectives?

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