Gets or sets the number of pages wide the worksheet will be scaled to when it's printed.
[Visual Basic] Property FitToPagesWide As Integer [C#] int FitToPagesWide { get; set; } [C++] __property int get_FitToPagesWide(); __property void set_FitToPagesWide(int ); [JScript] function get FitToPagesWide() : int function set FitToPagesWide(int);
If this property is 0, the worksheet will be scaled according to the FitToPagesTall property. If the FitToPages property is false, the FitToPagesWide property is ignored and the Zoom property control how the worksheet is scaled.
This example causes to print worksheet one exactly one page tall and wide.
[C#]
book.Worksheets[1].PageSetup.FitToPagesTall = 1;
book.Worksheets[1].PageSetup.FitToPagesWide = 1;
[Visual Basic]
book.Worksheets(1).PageSetup.FitToPagesTall = 1
book.Worksheets(1).PageSetup.FitToPagesWide = 1
[C++]
book->Worksheets->Item[1]->PageSetup->FitToPagesTall = 1;
book->Worksheets->Item[1]->PageSetup->FitToPagesWide = 1;
IPageSetup Interface | NativeExcel Namespace | FitToPagesTall Property | Zoom Property