Spread Windows Forms 11.0 Product Documentation
Images Property (PrintInfo)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > PrintInfo Class : Images Property
Gets or sets the image list for the header and footer.
Syntax
'Declaration
 
Public Property Images As Image()
'Usage
 
Dim instance As PrintInfo
Dim value() As Image
 
instance.Images = value
 
value = instance.Images
public Image[] Images {get; set;}

Property Value

Images array containing the images
Remarks

Use this property to define the graphic images that can be used in headers and footers on printed pages using the Header property and Footer property and the /g command (for graphics). Then refer to the graphic according to the index of that graphic. Index numbers start at 0.

You can customize the position and appearance of headers and footers 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 customize the contents and appearance of a printed footer at the bottom of every page, use the Footer 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)
See Also

Reference

PrintInfo Class
PrintInfo Members

User-Task Documentation

Customizing the Printed Page Header or Footer