|
|
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 | | PageType | The type of page to create. Standard, First, Odd, Even or Last. | | Text | The text for the Header. | | FontName | The Font family to use for the Header. | | FontSize | The Font size to use for the Header. | | FontBold | Bold style. | | FontItalic | Italic style. | | FontUnderline | Underline style. | | FontColor | Foreground colour. | | Align | Alignment: Left, Centre, Right or Full justification. | | IndentLeft | The distance from the Left margin to indent the item. | | IndentRight | The distance from the Right margin to indent the item. | | Width | The 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
|