Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Properties specific to the description of docHeaderFooter variables
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Stored procedures
The docHeaderFooter type is used to define the text of the different paragraphs found in a page header or footer. The characteristics of this header or footer can be defined and modified using different WLanguage properties.
CAUTION: This type must not be used directly. It must only be used via docSection variables.
Remark: See Declaring a variable for more details on the declaration of this type of variable and the use of WLanguage properties.
MyDoc is Document
// Create the page header
s is an docSection = MyDoc.Section
s.Header.PageImpairedInherited = True
d is an docFragment(s.Heading.FirstPage, 1)
d.MiseEnForme.PoliceGras = True
d.FontSize = 24
d.texts = "ENTETE"
MyPara is an docParagraph = d.Paragraph [1]
MyPara.Setup.Alignment = haCenter
//Insert an image into the header
d3 is an docFragment(s.Heading.FirstPage, 1)
Img is Image = fExeDir() + "\testimg.jpg"
MyImageElement is docElement
MonElementImage.type = typeDocElementImage
MonElementImage.Image.BufferImage = Img
MonElementImage.Image.Width = 20
MonElementImage.Image.Height = 20
DocInsert(d3, MyImageElement)
// Create a page footer
sFoot is an docSection = MyDoc.Section
dFoot is an docFragment(sFoot.PageFoot.Pair, 1)
MyPara2 is an docParagraph = dFoot.Paragraph [1]
MyPara2.Setup.Alignment = haRight
// Insert a formula into the footer
MyFormulaElement is docElement
MyFormulaElement Type = typeDocElementFormula
MyElementFormula.Formula.Instruction = "PAGE \* Arabic \* MERGEFORMAT"
DocInsert(dFooter, MyFormulaElement)
WP_NoName1 = MyDoc

Properties specific to the description of docHeaderFooter variables

The following properties can be used to handle a docHeaderFooter variable:
Property nameType usedEffect
ParagraphArray of docParagraphSet of paragraphs making up the page header or footer.
Minimum version required
  • Version 22
This page is also available for…
Click [Add] to post a comment