Introduced in build 10.0
Description
Saves a Workbook as a PDF file at a specified file path.C#
vb.net
Parameters
onlySelectedWorksheets
If true, only selected worksheets will be saved to the PDF. If false, all visible worksheets in the workbook will be saved to the PDF.filePath
Astring
representing the filepath you would like to save the PDF to.
Exceptions
System.Exception
If there is a problem creating, opening, or writing to the file specified, or reading from the Workbook object.Examples
C#
vb.net