ActiveReports 8
FitToPagesWide Property
See Also  Example
GrapeCity.ActiveReports.Export.Excel.v8 Assembly > GrapeCity.SpreadBuilder.Printing Namespace > PageSetup Class : FitToPagesWide Property

Glossary Item Box

Returns or sets the number of pages wide to which the worksheet will be scaled when it's printed.

Syntax

Visual Basic (Declaration) 
Public Property FitToPagesWide As System.Short
C# 
public System.short FitToPagesWide {get; set;}

Property Value

Short.

Remarks

If the Zoom property is set to True, this property is ignored.

Example

C#Copy Code
sb.Sheets[0].PageSetup.FitToPagesTall = 2;
sb.Sheets[0].PageSetup.FitToPagesWide = 2;

if (sb.Sheets[0].PageSetup.FitToPage == true)
{
    MessageBox.Show("FitToPage");
}
Visual BasicCopy Code
sb.Sheets(0).PageSetup.FitToPagesTall = 2
sb.Sheets(0).PageSetup.FitToPagesWide = 2

If sb.Sheets(0).PageSetup.FitToPage = True Then
    MsgBox("FitToPage")
End If

Requirements

Target Platforms: 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

See Also