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


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SmartPaperRule Class > SmartPaperRule Constructor : SmartPaperRule Constructor()
Creates a smart paper rule with no reset option.
Syntax
'Declaration
 
Public Function New()
'Usage
 
Dim instance As New SmartPaperRule()
public SmartPaperRule()
Example
This example creates a rule.
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
Overload List