How to: Export a Workbook to PDF
This example demonstrates how to save a workbook in PDF format via the IWorkbook.ExportToPdf method.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/winforms-spreadsheetcontrol-api-e4655
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.
See Also