|
|
|
|
|
- Properties specific to docHeaderFooter variables
docHeaderFooter (Variable type) In french: docEntêtePiedDePage
The docHeaderFooter type is used to define the text of the different paragraphs found in a page header or footer. You can define and change the characteristics of this header or footer using different WLanguage properties. ATTENTION: This type must not be used directly. It must only be used via variables of type docSection. Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable. MonDoc is Document
s is docSection = MonDoc.Section
s.Header.OddPageInherited = True
d is docFragment(s.Header.FirstPage, 1)
d.Formatting.FontBold = True
d.Formatting.FontSize = 24
d.Text = "ENTETE"
MonPara is docParagraph = d.Paragraph[1]
MonPara.PageLayout.Alignment = haCenter
d3 is docFragment(s.Header.FirstPage, 1)
Img is Image = fExeDir() + "\imgtest.jpg"
MonElementImage is docElement
MonElementImage.Type = typeDocElementImage
MonElementImage.Image.ImageBuffer = Img
MonElementImage.Image.Width = 20
MonElementImage.Image.Height = 20
DocInsert(d3, MonElementImage)
sPied is docSection = MonDoc.Section
dPied is docFragment(sPied.PageFooter.EvenPage, 1)
MonPara2 is docParagraph = dPied.Paragraph[1]
MonPara2.PageLayout.Alignment = haRight
MonElémentFormule is docElement
MonElémentFormule.Type = typeDocElementFormula
MonElémentFormule.Formula.Instruction = "PAGE \* Arabic \* MERGEFORMAT"
DocInsert(dPied, MonElémentFormule)
TT_SansNom1 = MonDoc
Properties Properties specific to docHeaderFooter variables The following properties can be used to define the characteristics of docHeaderFooter variables:
| | | Property name | Type used | Effect |
---|
Paragraph | Array of docParagraph | Set of paragraphs making up the page header or footer. |
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|