Gets the print options associated with the specified worksheet.
public PrintOptions GetPrintOptions(
Worksheet ,
System.bool
)
'Declaration
Public Function GetPrintOptions( _
ByVal As Worksheet, _
Optional ByVal As System.Boolean _
) As PrintOptions
Parameters
- worksheet
- The worksheet whose associated print options are to be retrieved.
- createIfNull
- True to create the print options if it has not yet been allocated. The options will be initialized based on the current state of the Worksheet. Note the options should only have been null if there were no options for the Worksheet when the Workbook was loaded. Also this will not allocate the collection unless the SavePrintOptions is true.
Return Value
Null if
SavePrintOptions is False or if the worksheet does not belong to the workbook associated with this custom view; otherwise, the print options associated with the worksheet.
Target Platforms: Windows 8.1, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2