4D v17WP Get footer |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v17
WP Get footer
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| WP Get footer ( rangeObj ) | (wpDoc ; sectionIndex {; sectionSubType} ) -> Function result | ||||||||
| Parameter | Type | Description | ||||||
| rangeObj | Object |
|
4D Write Pro range | |||||
| wpDoc | Object |
|
4D Write Pro document | |||||
| sectionIndex | Longint |
|
Section index | |||||
| sectionSubType | Longint |
|
Sub-type of the section (wk first page, wk left page, or wk right page) | |||||
| Function result | Object |
|
4D Write Pro footer reference | |||||
The WP Get footer command returns a reference to the footer associated to the rangeObj range or to the specified sectionIndex of the wpDoc document.
| Constant | Type | Value |
| wk first page | Longint | 1 |
| wk left page | Longint | 2 |
| wk right page | Longint | 3 |
You want to copy the footer of the first page of a 4D Write Pro document to the footer of all pages of another 4D Write Pro document:
C_OBJECT($footerSource;$rangeSource;$tempoc;$footerTarget;$rangeTarget)
$footerSource:=WP Get footer([TEMPLATES]WPtemplate;1;wk first page) //get the first page footer of section 1
$rangeSource:=WP Create range($footerSource;wk start text;wk end text)
$tempoc:=WP New($rangeSource)
$footerTarget:=WP Get footer([Docs]MyWPDoc;1) //all pages of section 1
$rangeTarget:=WP Create range($footerTarget;wk start text;wk end text)
WP INSERT DOCUMENT($rangeTarget;$tempoc;wk replace)
Product: 4D
Theme: 4D Write Pro Language
Number:
1504
Created: 4D v16 R5
4D Write Pro Reference ( 4D v17)
Add a comment