 |
ExcelToPdfConvertStream(Stream, ExcelFormat) Method |
Converts the workbook read from a stream to pdf, reading it as the given format.
Namespace: SelectPdf.UniversalAssembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.6
Syntaxpublic PdfDocument ConvertStream(
Stream stream,
ExcelFormat format
)
Public Function ConvertStream (
stream As Stream,
format As ExcelFormat
) As PdfDocument
Parameters
- stream Stream
- A readable stream positioned at the start of the workbook. Cannot be null.
- format ExcelFormat
- The format the stream is read as.
Return Value
PdfDocument
A
PdfDocument containing the converted content. The caller is responsible for
saving and closing the returned document.
Exceptions| Exception | Condition |
|---|
| ExcelToPdfException |
Thrown when stream is null, or the workbook cannot be read or rendered.
|
See Also