Spread for ASP.NET 7.0 Product Documentation
ResetOption Property
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > ScaleRule Class : ResetOption Property


Glossary Item Box

Determines whether to reset the rules or a particular rule before testing the next SmartPrint rule.

Syntax

Visual Basic (Declaration) 
Public Overrides Property ResetOption As ResetOption
Visual Basic (Usage)Copy Code
Dim instance As ScaleRule
Dim value As ResetOption
 
instance.ResetOption = value
 
value = instance.ResetOption
C# 
public override ResetOption ResetOption {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 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.