GemBox.Spreadsheet

ExcelPrintOptions.AutomaticPageBreakScalingFactor Property

Scaling factor for automatic page breaks.

public int AutomaticPageBreakScalingFactor {get; set;}

Remarks

Unit is one percent. Value must be between 10 and 400.

Default value for this property is 100.

MS Excel inserts automatic page breaks depending on this scaling factor. Smaller it gets, bigger will be the distance between the two automatic page breaks.

If you set this property, FitToPage will automaticaly be set to false.

Exceptions

Exception TypeCondition
ArgumentOutOfRangeExceptionThrown if value is out of 10 to 400 range.

See Also

ExcelPrintOptions Class | GemBox.Spreadsheet Namespace