This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20
WP FREEZE FORMULAS
|
WP FREEZE FORMULAS ( targetObj {; recompute} ) | ||||||||
Parameter | Type | Description | ||||||
targetObj | Object |
![]() |
Range or element or 4D Write Pro document | |||||
recompute | Longint |
![]() |
Option to control recomputing | |||||
The WP FREEZE FORMULAS command "freezes" the contents of the formulas in targetObj.
The command replaces each formula in the targetObj with its computed value (either static text or image). This creates a portable document since only the references of formulas are kept in the targetObj itself.
In the targetObj parameter, you can pass:
Notes:
The recompute optional parameter allows you to define if the formulas in targetObj must be recomputed before being frozen. You can pass one constant from the "4D Write Pro" theme:
Constant | Type | Value | Comment |
wk do not recompute expressions | Longint | 2 | Specifies that all expressions in the document are not recomputed before printing or freezing. |
wk recompute expressions | Longint | 0 | Specifies that all expressions in the document are recomputed before printing or freezing (default value). |
By default, if recompute is omitted, expressions are recomputed.
Warning: Carry-over rows, if any, are transformed as regular rows when you freeze the targetObj. As a result, if the page size or orientation is modified, or if the document is exported, they may be shifted in the resulting layout.
To freeze the formulas in a document:
WP FREEZE FORMULAS(WriteProArea)
To freeze all formulas in the first section of a document without recomputing:
WP FREEZE FORMULAS(WP Get section(WriteProArea;1);wk do not recompute expressions)
Product: 4D
Theme: 4D Write Pro Language
Number:
1708
Created: 4D v18 R2
4D Write Pro Reference ( 4D v20)