Spread for ASP.NET 9.0 Product Documentation
ShowColumnFooter Property (PrintInfo)
Example 


Gets or sets whether to print the column footer.
Syntax
'Declaration
 
Public Property ShowColumnFooter As PrintHeader
'Usage
 
Dim instance As PrintInfo
Dim value As PrintHeader
 
instance.ShowColumnFooter = value
 
value = instance.ShowColumnFooter
public PrintHeader ShowColumnFooter {get; set;}
Example
This example defines the print information.
FarPoint.Web.Spread.PrintInfo info = new FarPoint.Web.Spread.PrintInfo();
info.BestFitCols = true;
info.BestFitRows = true;
info.Centering = Centering.Both;
info.ColEnd = 2;
info.ColStart = 2;
info.FirstPageNumber = 1;
info.Footer = "footer";
info.FooterHeight = 20;
info.Header = "header";
info.HeaderHeight = 30;
info.Margin = new PrintMargin(20, 20, 20, 02, 20, 20);
info.Opacity = 20;
info.Orientation = PrintOrientation.Auto;
info.PageEnd = 20;
info.PageOrder = PrintPageOrder.Auto;
info.PageStart = 2;
info.PrintType = PrintType.All;
info.RepeatColEnd = 2;
info.RepeatColStart = 2;
info.RepeatRowEnd = 2;
info.RepeatRowStart = 2;
info.RowEnd = 2;
info.RowStart = 2;
info.ShowBorder = true;
info.ShowColumnFooter = PrintHeader.Hide;
info.ShowColumnFooterEachPage = true;
info.ShowColumnHeader = PrintHeader.Hide;
info.ShowGrid = true;
info.ShowRowHeader = PrintHeader.Hide;
info.ShowSubtitle = true;
info.ShowTitle = true;
info.SmartPrintPagesTall = 2;
info.SmartPrintPagesWide = 2;
SmartPrintRulesCollection printrules = new SmartPrintRulesCollection();
printrules.Add(new BestFitColumnRule(ResetOption.None));
printrules.Add(new LandscapeRule(ResetOption.None));
printrules.Add(new ScaleRule(ResetOption.All, 1.0f, .4f, .2f));
printrules.Add(new SmartPaperRule(ResetOption.Current));
info.SmartPrintRules = printrules;
info.UseMax = true;
info.UseSmartPrint = true;
info.ZoomFactor = 2;
FpSpread1.SavePdf("C:\\pdffile.pdf");
Dim info As New FarPoint.Web.Spread.PrintInfo()
info.BestFitCols = True
info.BestFitRows = True
info.Centering = Centering.Both
info.ColEnd = 2
info.ColStart = 2
info.FirstPageNumber = 1
info.Footer = "footer"
info.FooterHeight = 20
info.Header = "header"
info.HeaderHeight = 30
info.Margin = New PrintMargin(20, 20, 20, 2, 20, 20)
info.Opacity = 20
info.Orientation = PrintOrientation.Auto
info.PageEnd = 20
info.PageOrder = PrintPageOrder.Auto
info.PageStart = 2
info.PrintType = PrintType.All
info.RepeatColEnd = 2
info.RepeatColStart = 2
info.RepeatRowEnd = 2
info.RepeatRowStart = 2
info.RowEnd = 2
info.RowStart = 2
info.ShowBorder = True
info.ShowColumnFooter = PrintHeader.Hide
info.ShowColumnFooterEachPage = True
info.ShowColumnHeader = PrintHeader.Hide
info.ShowGrid = True
info.ShowRowHeader = PrintHeader.Hide
info.ShowSubtitle = True
info.ShowTitle = True
info.SmartPrintPagesTall = 2
info.SmartPrintPagesWide = 2
Dim printrules As New SmartPrintRulesCollection()
printrules.Add(New BestFitColumnRule(ResetOption.None))
printrules.Add(New LandscapeRule(ResetOption.None))
printrules.Add(New ScaleRule(ResetOption.All, 1F, 0.4F, 0.2F))
printrules.Add(New SmartPaperRule(ResetOption.Current))
info.SmartPrintRules = printrules
info.UseMax = True
info.UseSmartPrint = True
info.ZoomFactor = 2
FpSpread1.SavePdf("C:\pdffile.pdf")
Requirements

Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

PrintInfo Class
PrintInfo Members

 

 


Copyright © GrapeCity, inc. All rights reserved.