- In the InvoiceHeader element, create an element of type Character String and name it.
Note. The element and the block which corresponds to the field InvoiceNumber need not have identical names, but this is handy when working with the FlexiLayout. - Click the Character String tab.
- Set the Percentage of non-alphabet characters to 100%, which means that there is no restriction for characters.
- In the Character count field, specify this fuzzy interval: {-1, 3, 20, INF}, which restricts the number of characters in the string. We assume that the possible values range from 3 to 20. Any hypotheses outside this range will be penalized.
- Click the Relations tab.
- Since InvoiceNumber can only occur to the right of the keywords of the name kwInvoiceNumber, but no farther than 550 dots from the right boundary of the name kwInvoiceNumber, set the following search constraints:
- Right of the element kwInvoiceNumber, Offset = 0
- Left of the element kwInvoiceNumber, Offset = -550, Reference boundary = Right
Note. Offset values are selected by method of trial and error.
- Since InvoiceNumber is always located on the same level with the keyword of the name kwInvoiceNumber, set the following search constraints:
- Above the element kwInvoiceNumber, Offset = -10, Reference boundary = Bottom
- Below the element kwInvoiceNumber, Offset = -10, Reference boundary = Top

- Try matching the FlexiLayout with the test images and make sure that the program successfully detects the element on all the images where applicable.
- To describe the location of the InvoiceNumber block, click its Properties and select the Source element option, then click
and select the InvoiceNumber element as the source element.
