PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Properties specific to the description of docHeaderFooter variables
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
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 by several WLanguage properties.
CAUTION: This type must not be used directly. It must only be used via docSection variables.
Note: See Declaring a variable for more details.
Example
MyDoc is Document
// Create the page header
s is docSection = MyDoc..Section
s..Header..OddPageInherited = True
d is docFragment(s..Header..FirstPage, 1)
d..Formatting..FontBold = True
d..Formatting..FontSize = 24
d..Text = "HEADER"
MyPara is docParagraph = d..Paragraph[1]
MyPara..PageLayout..Alignment = haCenter

//Insert an image into the header
d3 is docFragment(s..Header..FirstPage, 1)
Img is Image = fExeDir() + "\testimg.jpg"
MyImageElement is docElement
MyImageElement..Type = typeDocElementImage
MyImageElement..Image..BufferImage = Img
MyImageElement..Image..Width = 20
MyImageElement..Image..Height = 20
DocInsert(d3, MyImageElement)


// Create a page footer
sFooter is docSection = MyDoc..Section
dFooter is docFragment(sFooter..Footer..OddPage, 1)
MyPara2 is docParagraph = dFooter..Paragraph[1]
MyPara2..PageLayout..Alignment = haRight

// Insert a formula into the footer
MyFormulaElement is docElement
MyFormulaElement..Type = typeDocElementFormula
MyFormulaElemen..Formula..Instruction = "PAGE \* Arabic \* MERGEFORMAT"
DocInsert(dFooter, MyFormulaElement)

WP_NoName1 = MyDoc
Remarks

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.

Note: These properties can be handled by using one of the following syntaxes:
  • <Variable Name>..<Property Name>
  • <Variable Name>.<Property Name>
Minimum required version
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment