FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SmartPaperRule Class > SmartPaperRule Constructor : SmartPaperRule Constructor(ResetOption) |
'Declaration Public Function New( _ ByVal resetOption As ResetOption _ )
'Usage Dim resetOption As ResetOption Dim instance As New SmartPaperRule(resetOption)
public SmartPaperRule( ResetOption resetOption )
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(); printrules.Add(new FarPoint.Web.Spread.SmartPaperRule(FarPoint.Web.Spread.ResetOption.Current)); 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() printrules.Add(New FarPoint.Web.Spread.SmartPaperRule(FarPoint.Web.Spread.ResetOption.Current)) info.SmartPrintRules = printrules info.UseMax = True info.UseSmartPrint = True FpSpread1.Sheets(0).PrintInfo = info FpSpread1.SavePdf("C:\pdffile.pdf")
Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional