Spread for ASP.NET 11 Product Documentation
ResetOption Property (SmartPaperRule)
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SmartPaperRule Class : ResetOption Property
Specifies whether to reset the rules or a particular rule before testing the next SmartPrint rule.
Syntax
'Declaration
 
Public Overrides Property ResetOption As ResetOption
'Usage
 
Dim instance As SmartPaperRule
Dim value As ResetOption
 
instance.ResetOption = value
 
value = instance.ResetOption
public override ResetOption ResetOption {get; set;}
Example
This example sets the ResetOption property.
FpSpread1.ActiveSheetView.SetClip(0, 0, 2, 4, "one\ttwo\tthree\tfour\r\nfive\tsix\tseven\teight");
FarPoint.Web.Spread.PrintInfo info = new FarPoint.Web.Spread.PrintInfo();
info.Footer = "footer";
info.Header = "header";
FarPoint.Web.Spread.SmartPrintRulesCollection printrules = new FarPoint.Web.Spread.SmartPrintRulesCollection();
FarPoint.Web.Spread.SmartPaperRule paperrule = new FarPoint.Web.Spread.SmartPaperRule();
paperrule.ResetOption = FarPoint.Web.Spread.ResetOption.All;
printrules.Add(paperrule);
info.SmartPrintRules = printrules;
info.UseMax = true;
info.UseSmartPrint = true;
FpSpread1.Sheets[0].PrintInfo = info;
FpSpread1.SavePdf("C:\\pdffile.pdf");
FpSpread1.ActiveSheetView.SetClip(0, 0, 2, 4, "one" + Chr(9) + "two" + Chr(9) + "three" + Chr(9) + "four" + vbCrLf + "five" + Chr(9) + "six" + Chr(9) + "seven" + Chr(9) + "eight")
Dim info As New FarPoint.Web.Spread.PrintInfo()
info.Footer = "footer"
info.Header = "header"
Dim printrules As New FarPoint.Web.Spread.SmartPrintRulesCollection()
Dim paperrule As New FarPoint.Web.Spread.SmartPaperRule()
paperrule.ResetOption = FarPoint.Web.Spread.ResetOption.All
printrules.Add(paperrule)
info.SmartPrintRules = printrules
info.UseMax = True
info.UseSmartPrint = True
FpSpread1.Sheets(0).PrintInfo = info
FpSpread1.SavePdf("C:\pdffile.pdf")
See Also

Reference

SmartPaperRule Class
SmartPaperRule Members