How to: Export a Workbook to PDF
This example demonstrates how to save a workbook in PDF format via the Workbook.ExportToPdf method.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/wpf-spreadsheetcontrol-api-part-1-e4938.
using (FileStream pdfFileStream = new FileStream("Documents\\Document_PDF.pdf", FileMode.Create)) {
workbook.ExportToPdf(pdfFileStream);
}
Note
Refer to the Export to PDF document to learn about PDF export features and limitations.