|
|
Pages
Returns the total pages in the document. If the document has been changed since the last calculation of the document's length, the Pages property is recalculated.
Syntax Object.Pages
Return Value Integer
Notes In the example, a Standard Footer is created with centre alignment. If the Document's Page total is greater than one, an OddPage and EvenPage footer are created with Right and Left alignment respectively.
Example qPrint.Document.SetFooterContent Standard_hf, "Page #PageNumber#", "Arial", 8, True, , , , eCentre
If qPrint.Document.Pages > 1 Then
qPrint.Document.FooterCopy Standard_hf, OddPage_hf
qPrint.Document.FooterCopy Standard_hf, EvenPage_hf
qPrint.Document.Footer(OddPage_hf).Alignment = eRight
qPrint.Document.Footer(EvenPage_hf).Alignment = eLeft
qPrint.Document.SetFooter(OddPage_hf) = True
qPrint.Document.SetFooter(EvenPage_hf) = True
Else
qPrint.Document.SetFooter(Standard_hf) = True
End If
|