Introduced in build 10.0
Description
Saves a Worksheet as a PDF document to the specified stream.C#
vb.net
Parameters
stream
The output stream to write to. This stream must be open and writable. ExcelWriter will not close this stream; the calling program is responsible for closing the stream and releasing the resource.
Exceptions
System.Exception
If there is a problem creating, opening, or writing to the stream specified, or reading from the Worksheet object.Remarks
The Worksheet.PageSetup property will be used to specify how the worksheet should be rendered to the PDF document. The individual PageSetup options are reflected in the final document.Examples
C#
vb.net