version 6.5 (Modified)
WR Insert picture area (area; picture; where) Longint
Parameter | Type | Description | |
area | Longint | 4D Write area | |
picture | Picture | 4D Write area picture to insert | |
where | Integer | 1=Document end | |
0=Insertion point | |||
Function result | Longint | Error code |
Description
The WR Insert picture area command inserts the 4D Write document in Picture into area.
where describes the position at which the new text will be inserted.
If where equals 1, the text will be inserted at the end of the document.
If where equals 0, the text will be inserted at the current insertion point or will replace any currently selected text.
WR Insert picture area returns a long integer containing an error code.
If the insertion is successful, the value returned is 0. See Appendix C: Error Codes for error codes.
Example
The following example adds the signature of the sender to the end of the document:
QUERY([Sender]; [Sender]Name=[Letter]Sender) ErrorNum:=WR Insert picture area(area;[Sender]Signature_; 1)
See Also