IWorkbook.ExportToPdf(Stream) Method
Exports the workbook to the specified stream in PDF format.
Namespace: DevExpress.Spreadsheet
Assembly: DevExpress.Spreadsheet.v26.1.Core.dll
NuGet Package: DevExpress.Spreadsheet.Core
Declaration
Parameters
| Name | Type | Description |
|---|---|---|
| stream | Stream | A Stream object to which the created PDF file should be sent. |
Example
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