|
|
HeaderCopy
Copies the specified 'FromItem' Header FormatBlock to the 'ToItem' Header FormatBlock. The FormatBlock for the copied item can then be altered.
Syntax Object.HeaderCopy (FromItem As qePrinterHeadFootPage, ToItem As qePrinterHeadFootPage)
| Parameters | | FromItem | The type of page to Copy: Standard, First, Odd, Even or Last. | | ToItem | The type of page to paste the copy: Standard, First, Odd, Even or Last. |
Notes Simplifies creating Headers by allowing style Changes to be copied from one PageType to another.
The example creates a Header displaying the title of the Document on the right hand side of the OddPage. The HeaderCopy method is used to copy the formatting options of the OddPage Header to the EvenPage Header. The EvenPage Header's alignment is then changed to Left justification.
Example ' Create the 'Odd Page' Header
With qPrint.Document.Header(OddPage_hf)
.FontName = "Arial"
.FontSize = 11
.FontBold = True
.Alignment = eRight
.Text = "#AppName# - Document 1"
End With
' Copy the Header to the 'Even Page' Header
qPrint.Document.HeaderCopy OddPage_hf, EvenPage_hf
' Change the Alignment of the Even Page Header
qPrint.Document.HeaderCopy(EvenPage_hf).Alignment = eLeft
See Also: Header, SetHeader, SetHeaderContent
|