qbd software ltd [UK]
qprinter > moth > qbd software
qPrinter² qcDocument: Properties and Methods
Applies To:
qcDocument
 
See Also:
Header
SetHeader
HeaderCopy
SetFooterContent
 

SetHeaderContent

Method to simplify creating a formatted Header for the specified PageType.

Syntax

Object.SetHeaderContent (PageType As qeHeadFootShowEnum, Text As String, FontName As String, FontSize As Single, FontBold As Boolean , FontItalic As Boolean , FontUnderline As Boolean , FontColor As Long , Align As qePrinterAlign , IndentLeft As Single , IndentRight As Single , Width As Single )

Parameters
PageTypeThe type of page to create. Standard, First, Odd, Even or Last.
TextThe text for the Header.
FontNameThe Font family to use for the Header.
FontSizeThe Font size to use for the Header.
FontBoldBold style.
FontItalicItalic style.
FontUnderlineUnderline style.
FontColorForeground colour.
AlignAlignment: Left, Centre, Right or Full justification.
IndentLeftThe distance from the Left margin to indent the item.
IndentRightThe distance from the Right margin to indent the item.
WidthThe distance from the Right margin to indent the item.

Notes

The example would create a Footer for use on the FirstPage that displays 'Page 1' in the centre using a Bold Arial 8pt font.

Example

qPrint.Document.SetHeaderContent Standard_hf, "#AppName# - Document 1", "Arial", 10, True, , , , eCentre
qPrint.Document.SetHeader(Standard_hf) = True

See Also: Header, SetHeader, HeaderCopy, SetFooterContent

©2002 qbd software ltd