ActiveReports 15 .NET Edition
GrapeCity.ActiveReports.Export.Excel Assembly / GrapeCity.SpreadBuilder.Printing Namespace / PageSetup Class / FitToPagesWide Property
Example

In This Topic
    FitToPagesWide Property
    In This Topic
    Returns or sets the number of pages wide to which the worksheet will be scaled when it's printed.
    Syntax
    'Declaration
     
    Public Property FitToPagesWide As Short
    public short FitToPagesWide {get; set;}

    Property Value

    Short.
    Remarks
    If the Zoom property is set to True, this property is ignored.
    Example
    sb.Sheets[0].PageSetup.FitToPagesTall = 2;
    sb.Sheets[0].PageSetup.FitToPagesWide = 2;
    
    if (sb.Sheets[0].PageSetup.FitToPage == true)
    {
        MessageBox.Show("FitToPage");
    }
    sb.Sheets(0).PageSetup.FitToPagesTall = 2
    sb.Sheets(0).PageSetup.FitToPagesWide = 2
    
    If sb.Sheets(0).PageSetup.FitToPage = True Then
        MsgBox("FitToPage")
    End If
    See Also