ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

PrintInfo.PageFooterHeight Property

Gets or sets the page footer height in hundredths of an inch.

[Visual Basic]

Public Property PageFooterHeight As Integer

[C#]

public int PageFooterHeight {get;set;}

[Delphi]

public property PageFooterHeight: Int32 read get_PageFooterHeight write set_PageFooterHeight;

Example

The following example sets the height of the page footer:

·      Visual Basic

       ' Display page numbers (centered).

       Me.C1TrueDBGrid1.PrintInfo.PageFooter = "Page: \p"

       Me.C1TrueDBGrid1.PrintInfo.PageFooterHeight = 50

       ' Invoke print preview.

       Me.C1TrueDBGrid1.PrintInfo.PrintPreview()

·      C#

       // Display page numbers (centered).

       this.c1TrueDBGrid1.PrintInfo.PageFooter = "Page: \\p";

       this.c1TrueDBGrid1.PrintInfo.PageFooterHeight = 50;

       // Invoke print preview.

       this.c1TrueDBGrid1.PrintInfo.PrintPreview();

·      Delphi

       // Display page numbers (centered).

       Self.C1TrueDBGrid1.PrintInfo.PageFooter := 'Page: \\p';

       Self.C1TrueDBGrid1.PrintInfo.PageFooterHeight := 50;

       // 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.