A newer version of this page is available. Switch to the current version.

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)) {

Refer to the Export to PDF document to learn about PDF export features and limitations.

See Also