Sample 3. Step 22: Describing the name of the Total fields with a kwTotal element
You will have noticed that the name of the Total Quantity and Total Amount fields may be represented by the keywords ”TotalChf” or ”Carried Over” and is located in the lower left part of the page.
To create the kwTotal element:
- In the Footer element, create an element of type Static Text and name it kwTotal.
- Click the Static Text tab.
- In the Search text field, specify the values for the sought text: “TotalChf|CarriedOver”.
- Set Max error percentage to 30.
- Click the Advanced tab.
- Since the name is located in the left half of the page and the sought string is nearest to the top edge of the page, set the following additional search constraint in the Advanced pre-search relations field:Look for the object in the left half of the page; Look for the object nearest to the top edge of the page.In the FlexiLayout language:
LeftOf: PageRect.Left + PageRect.Width/2;
NearestY: PageRect.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.
12.04.2024 18:16:02