-
In the
InvoiceHeader.grAddresselement, create an element of type White Gap and name it wgAddressRight. - Click the White Gap tab.
- In the Orientation group, choose Vertical. Set Min width to 100.
-
Set Lower threshold limit: and Threshold coefficient (%): to 10.
The values of Lower threshold limit, Upper threshold limit, and Threshold coefficient (%) are selected by trial and error.
For more information, see White Gap. - Leave the default values for the other parameters of the element.

- Click the Relations tab.
-
Since the sought white gap can only be located to the right of the keywords of the name kwDeliveryAddress, set the following search constraint:
- Right of the element kwDeliveryAddress, Offset = 0
- Click the Advanced tab.
-
Since the Delivery Address field is optional on the images but whenever it occurs it has a name, set the following additional search constraint in the Advanced pre-search relations field: Look for the object only if the kwDeliveryAddress element has been detected. In the FlexiLayout language:
If InvoiceHeader.kwDeliveryAddress.IsNull Then DontFind; -
Since the sought white gap is adjacent to the Invoice Number field, set the following additional search constraint in the Advanced pre-search relations field: Look for the object on the image which is nearest to the kwInvoiceNumber element. In the FlexiLayout language:
Nearest: InvoiceHeader.kwInvoiceNumber; - Try matching the FlexiLayout with the test images and make sure that the program successfully detects the element on all the images where the Delivery Address field occurs.
