ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Word Processing functions
  • Properties specific to docHeaderFooter variables
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
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.
Example
MonDoc is Document
// Création de l'entête de page
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

//Insertion d'une image dans l'entête
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)


// Création d'un pied de page
sPied is docSection = MonDoc.Section
dPied is docFragment(sPied.PageFooter.EvenPage, 1)
MonPara2 is docParagraph = dPied.Paragraph[1]
MonPara2.PageLayout.Alignment = haRight

// Insertion d'une formule dans le pied de page
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 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…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help