'Declaration Public Property MaxPagesHorizontally As System.Integer
public System.int MaxPagesHorizontally {get; set;}
Exception | Description |
---|---|
System.ArgumentOutOfRangeException | The value assigned is outside the valid range of 0 and 32767. |
A value of zero indicates no maximum is used in the horizontal 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.
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
View on GitHub