ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

PrintInfo.FillAreaWidth Property

Gets or sets the mode of stretching to the page width.

[Visual Basic]

Public Property FillAreaWidth As PrintInfo+FillEmptyEnum

[C#]

public PrintInfo+FillEmptyEnum FillAreaWidth {get;set;}

[Delphi]

public property FillAreaWidth: PrintInfo+FillEmptyEnum read get_FillAreaWidth write set_FillAreaWidth;

Example

The following example stretches all columns proportionally to fill the empty page:

·      Visual Basic

       Me.C1TrueDBGrid1.PrintInfo.FillAreaWidth = C1.Win.C1TrueDBGrid.PrintInfo.FillEmptyEnum.ExtendAll

       ' Invoke print preview.

       Me.C1TrueDBGrid1.PrintInfo.PrintPreview()

·      C#

       this.c1TrueDBGrid1.PrintInfo.FillAreaWidth = C1.Win.C1TrueDBGrid.PrintInfo.FillEmptyEnum.ExtendAll

       // Invoke print preview.

       this.c1TrueDBGrid1.PrintInfo.PrintPreview();

·      Delphi

       Self.C1TrueDBGrid1.PrintInfo.FillAreaWidth := C1.Win.C1TrueDBGrid.PrintInfo.FillEmptyEnum.ExtendAll;

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