Spread for ASP.NET 7.0 Product Documentation
PageBreak Property
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > Column Class : PageBreak Property


Glossary Item Box

Gets or sets whether a page break is inserted before this column when printing.

Syntax

Visual Basic (Declaration) 
Public Property PageBreak As Boolean
Visual Basic (Usage)Copy Code
Dim instance As Column
Dim value As Boolean
 
instance.PageBreak = value
 
value = instance.PageBreak
C# 
public bool PageBreak {get; set;}

Example

This example sets the PageBreak property.
C#Copy Code
FpSpread1.Sheets[0].ColumnCount = 10;
FpSpread1.Sheets[0].Cells[0, 0, FpSpread1.Sheets[0].RowCount - 1, FpSpread1.Sheets[0].ColumnCount - 1].Text = "test";
FarPoint.Web.Spread.Column col;
col = FpSpread1.ActiveSheetView.Columns[2];
col.PageBreak = true;
FpSpread1.SavePdf("c:\\zipfile\\testprint.pdf");
VB.NETCopy Code
FpSpread1.Sheets(0).ColumnCount = 10
FpSpread1.Sheets(0).Cells(0, 0, FpSpread1.Sheets(0).RowCount - 1, FpSpread1.Sheets(0).ColumnCount - 1).Text = "test"
Dim col As FarPoint.Web.Spread.Column
col = FpSpread1.ActiveSheetView.Columns(2)
col.PageBreak = True
FpSpread1.SavePdf("c:\zipfile\testprint.pdf")

Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

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