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
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
Feedback