[]
Gets or sets the number of pages tall the worksheet will be scaled to when it's printed. Applies only to worksheets.
This setting is used when worksheet scaling is controlled by IsPercentScale instead of a zoom percentage.
int FitToPagesTall { get; set; }
Property FitToPagesTall As Integer
IPageSetup pageSetup = worksheet.PageSetup;
pageSetup.IsPercentScale = false;
pageSetup.FitToPagesTall = 2;
int pagesTall = pageSetup.FitToPagesTall;