4D Write v14

WR Insert picture area

Home

 
4D Write v14
WR Insert picture area

WR Insert picture area 


 

WR Insert picture area ( area ; picture ; where ) -> Function result 
Parameter Type   Description
area  Longint in 4D Write area
picture  Picture in 4D Write area picture to insert
where  Integer in 1=Document end 0=Insertion point
Function result  Longint in Error code

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.

In the where parameter, you can pass one of the following constants, found in the "WR Parameters" theme:

Constant Type Value Comment
wr at insertion point Longint 0 The text will be inserted at the current insertion point
wr at end of document Longint 1 The text will be inserted at the end of the document

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_;wr at end of document)

 
PROPERTIES 

Product: 4D Write
Theme: WR Database Objects
Number: 89225

 
HISTORY 

Modified: 4D Write 6.5

 
SEE ALSO 

WR Area to picture

 
ARTICLE USAGE

4D Write Language ( 4D Write v11.6)
4D Write Language ( 4D Write v12)
4D Write Language ( 4D Write v14)
4D Write Language ( 4D v13)
4D Write Language ( 4D Write v14 R2)
4D Write Language ( 4D Write v14 R3)
4D Write Language ( 4D Write v14 R4)