Spread Windows Forms 6.0 Product Documentation
RepeatRowStart Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > PrintInfo Class : RepeatRowStart Property


Glossary Item Box

Gets or sets the first row for a range of row to print at the top of each page.

Syntax

Visual Basic (Declaration) 
Public Property RepeatRowStart As Integer
Visual Basic (Usage)Copy Code
Dim instance As PrintInfo
Dim value As Integer
 
instance.RepeatRowStart = value
 
value = instance.RepeatRowStart
C# 
public int RepeatRowStart {get; set;}

Property Value

Integer row index

Remarks

This property specifies the start of the range of rows to repeat at the top of each printed page.

For rows to repeat at the top of each printed page, use this property RepeatRowStart and the RepeatRowEnd property.

For columns to repeat at the left of each printed page, refer to this property RepeatColStart and the RepeatColEnd property.

This is similar to the repeated range in the print title when setting up the printing in Excel.

For header and footer information, refer to the Header property and Footer property.

Example

This example shows how to define the settings for customizing the printed page header and footer including a repeating range.
C#Copy Code
// 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);
Visual BasicCopy Code
' 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 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.