Skip to main content
A newer version of this page is available. .

How to: Export a Workbook to PDF

This example demonstrates how to save a workbook in PDF format via the IWorkbook.ExportToPdf method.

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