ComponentOne List 8.0 for ActiveX
PageHeader Property

 

PageHeader Property

This property sets or returns a string to be printed at the top of each page.

Syntax

PrintInfo.PageHeader= string

Remarks

Read/Write at run time and design time.

Property applies to PrintInfo object.

By default, this property returns an empty string, and no page header is printed.

If specified, the page header can consist of up to three substrings separated by the \t character sequence. The first substring will be left-aligned, the second centered, and the third right-aligned on the printed page. The \p sequence will be replaced by the current page number during printing.

For example, the following statement sets the PageHeader property of the default PrintInfo object so that the current date is on the left, and the page number is on the right, preceded by the word "Page."

TDBList1.PrintInfo.PageHeader = CStr(Now) & "\t\tPage \p"

Use the PageFooter property to specify a string to be printed at the bottom of each page.

See Also

PrintInfo Object, PrintInfos Collection

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback