Version

MaxPagesVertically Property

Gets or sets the maximum number of pages allowed in the vertical direction to print the worksheet.
Syntax
public int MaxPagesVertically {get; set;}

Property Value

The maximum number of pages allowed in the vertical direction to print the worksheet.
Exceptions
ExceptionDescription
System.ArgumentOutOfRangeException The value assigned is outside the valid range of 0 and 32767.
Remarks

A value of zero indicates no maximum is used in the vertical direction. As many pages as needed will be used.

Note: For MaxPagesHorizontally and MaxPagesVertically to affect the way the worksheet is printed, ScalingType must be set to a value of FitToPages. However, if the the ScalingType is different and these values aren't used, they will still be saved with the worksheet.

Requirements

Target Platforms: Android 4.4+, iOS 8+

Development Environments: Visual Studio 2015+, Visual Studio for Mac Preview, Xamarin for Visual Studio 4.2+

See Also