Spread ASP.NET 6.0 Product Documentation
EndFactor Property
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > ScaleRule Class : EndFactor Property


Glossary Item Box

Gets or sets the zoom factor at which to stop testing.

Syntax

Visual Basic (Declaration) 
Public Property EndFactor As Single
Visual Basic (Usage)Copy Code
Dim instance As ScaleRule
Dim value As Single
 
instance.EndFactor = value
 
value = instance.EndFactor
C# 
public float EndFactor {get; set;}

Example

This example creates a scale rule for optimized printing.
C#Copy Code
FarPoint.Web.Spread.SmartPrintRulesCollection rules = new FarPoint.Web.Spread.SmartPrintRulesCollection();
FarPoint.Web.Spread.ScaleRule sr = new FarPoint.Web.Spread.ScaleRule();
FarPoint.Web.Spread.PrintInfo pi = new FarPoint.Web.Spread.PrintInfo();
sr.EndFactor = 4;
sr.Interval = 1;
sr.ResetOption = FarPoint.Web.Spread.ResetOption.None;
sr.StartFactor = 1;
rules.Add(sr);
pi.SmartPrintRules = rules;
pi.UseSmartPrint = true;
FpSpread1.ActiveSheetView.PrintInfo = pi;
Visual BasicCopy Code
Dim rules As New FarPoint.Web.Spread.SmartPrintRulesCollection
Dim sr As New FarPoint.Web.Spread.ScaleRule
Dim pi As New FarPoint.Web.Spread.PrintInfo
sr.EndFactor = 4
sr.Interval = 1
sr.ResetOption = FarPoint.Web.Spread.ResetOption.None
sr.StartFactor = 1
rules.Add(sr)
pi.SmartPrintRules = rules
pi.UseSmartPrint = True
FpSpread1.ActiveSheetView.PrintInfo = pi

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.