English (English) - Change language

Sample 3. Step 3: Blocks

The main goal of the FlexiLayout creation is a reliable detection of the following blocks (provided they occur on an image):

  • Invoice Number
  • Invoice Date
  • Delivery Address
  • Total Quantity
  • Total Amount
  • Country
  • Invoice Table (only the following columns: Reference, Designation, Quantity, Unit Price, Total)

Let us start to create these blocks in order to have their list during FlexiLayout creation.

  1. Create a block InvoiceNumber of type Text, which will correspond to the field Invoice Number.
  2. Create a block InvoiceDate of type Text, which will correspond to the field Invoice Date.
  3. Create a block DeliveryAddress of type Text, which will correspond to the field Delivery Address.
  4. Create a block TotalQuantity of type Text, which will correspond to the field Total Quantity.
  5. Create a block TotalAmount of type Text, which will correspond to the field Total Amount.
  6. Create a block Country of type Text, which will correspond to the field Country.
  7. Create a block InvoiceTable of type Table, which will correspond to the field Invoice Table. In the Properties dialog box of the block, click the Columns tab, enter the names of the columns and specify their order, which will later be used in a FlexiCapture Document Definition. Add the column names in the following order: Reference, Designation, Quantity, UnitPrice, and Total. (For more information, see Table Block)

    Show me...

Note.At this stage we only specify the type of a block and its name (and the order of columns for the Table block). We will specify the location of each block later, when all auxiliary elements have been described and debugged. It is very important that the block of type Table be created before the element of type Table which is used to look for the block, as the Table element must keep a reference to the Table block. This requirement makes Table blocks different from blocks of types Text, Barcode, Checkmark, and Picture, which can be created after modifying a FlexiLayout, when all the elements for different blocks have been created (for instance see Tutorial 1, Tutorial 2).

Now that the preparatory settings have been made, we can start to create elements.

11/10/2020 12:08:04 PM


Please leave your feedback about this article