ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

PrintInfo.PageBreak Property

Gets or sets the horizontal page break mode.

[Visual Basic]

Public Property PageBreak As PrintInfo+PageBreaksEnum

[C#]

public PrintInfo+PageBreaksEnum PageBreak {get;set;}

[Delphi]

public property PageBreak: PrintInfo+PageBreaksEnum read get_PageBreak write set_PageBreak;

Example

The following example sets the horizontal page break to break on any column that doesn't fit on the page:

·      Visual Basic

       Me.C1TrueDBGrid1.PrintInfo.PageBreak = C1.Win.C1TrueDBGrid.PrintInfo.PageBreaksEnum.OnColumn

       ' Invoke print preview.

       Me.C1TrueDBGrid1.PrintInfo.PrintPreview()

·      C#

       this.c1TrueDBGrid1.PrintInfo.PageBreak = C1.Win.C1TrueDBGrid.PrintInfo.PageBreaksEnum.OnColumn;

       // Invoke print preview.

       this.c1TrueDBGrid1.PrintInfo.PrintPreview();

·      Delphi

       Self.C1TrueDBGrid1.PrintInfo.PageBreak := C1.Win.C1TrueDBGrid.PrintInfo.PageBreaksEnum.OnColumn;

       // Invoke print preview.

       Self.C1TrueDBGrid1.PrintInfo.PrintPreview;

See Also

PrintInfo Class | PrintInfo Members | C1.Win.C1TrueDBGrid Namespace


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.