.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
Row

IWorkbook.ExportToPdf(Stream) Method

Exports the workbook to the specified stream in PDF format.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v20.2.Core.dll

Declaration

void ExportToPdf(
    Stream stream
)
Sub ExportToPdf(
    stream As Stream
)

Parameters

Name Type Description
stream Stream

A Stream object to which the created PDF file should be sent.

Examples

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);
}
See Also