Spread Windows Forms 9.0 Product Documentation
Footer Property (PrintInfo)
Example 


Gets or sets the text and format of footers on printed pages.
Syntax
'Declaration
 
Public Property Footer As String
'Usage
 
Dim instance As PrintInfo
Dim value As String
 
instance.Footer = value
 
value = instance.Footer
public string Footer {get; set;}

Property Value

String containing the footer text, which may include control characters (commands)
Remarks

Use this property to specify the contents and formatting of the footer that appears on the bottom of printed pages.

You can customize the position and appearance of the footer by using control commands as listed in Customizing the Printed Page Header or Footer. If you use multiple control commands, do not put spaces between them.

To print the sheet, use the FpSpread.PrintSheet method.

To customize the contents and appearance of a printed header at the top of every page, use the Header property.

To add images to the footer, refer to the Images property. To specify colors to text in the footer, refer to the Colors property.

Example
This example shows how to define the settings for customizing the printed page header and footer.
// Define the printer settings
FarPoint.Win.Spread.PrintInfo printset = new FarPoint.Win.Spread.PrintInfo(); 
printset.Colors = new Color[] {Color.Red, Color.Blue}; 
printset.Header = "Print Job For /nFPT Inc."; 
printset.Footer = "This is Page /p/nof /pc Pages"; 
printset.Images = new Image[] {Image.FromFile("D:\Corporate.jpg"), Image.FromFile("D:\Building.jpg")}; 
printset.RepeatColStart = 1; 
printset.RepeatColEnd = 25; 
printset.RepeatRowStart = 1; 
printset.RepeatRowEnd = 25; 

// Assign the printer settings to the sheet and print it
fpSpread1.Sheets[0].PrintInfo = printset; 
fpSpread1.PrintSheet(0);
' Define the printer settings
Dim printset As New FarPoint.Win.Spread.PrintInfo
printset.Colors = New Color() {Color.Red, Color.Blue}
printset.Header = "Print Job For /nFPT Inc."
printset.Footer = "This is Page /p/nof /pc Pages"
printset.Images = New Image() {Image.FromFile("D:\Corporate.jpg"), Image.FromFile("D:\Building.jpg")}
printset.RepeatColStart = 1
printset.RepeatColEnd = 25
printset.RepeatRowStart = 1
printset.RepeatRowEnd = 25

' Assign the printer settings to the sheet and print it
FpSpread1.Sheets(0).PrintInfo = printset
FpSpread1.PrintSheet(0)
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

PrintInfo Class
PrintInfo Members
Header Property

User-Task Documentation

Customizing the Printed Page Header or Footer

 

 


Copyright © GrapeCity, inc. All rights reserved.