Can the OCR results of a Document or results from a Locator be used to populate cells in a table?
19827
QAID # 19827 Published
Question / Problem:
Can the OCR results of a Document or results from a Locator be used to populate cells in a table?
Answer / Solution:
The OCR results or results from a Locator can be used to populate cells in a table, but this does require scripting in the KTM project.
The OCR results can also be fed directly into the cells of a table.
This example puts the word values from the OCR results into each cell of a table:
Dim oWords As New CscXDocWords Dim i As Integer Set oWords = pXDoc.GetWordsInRect(pField.PageIndex, pField.Left, pField.Top, _ pField.Width, pField.Height) For i = 0 To oWords.Count - 1 pXDoc.Fields.ItemByName().Table.Rows.ItemByIndex().Cells.ItemByIndex().AddWordData _ oWords.ItemByIndex(i) Next i
A Locator can fill a field value and that field value can be used to populate a cell. Or, the results from the Locator Alternatives from a Locator can be accessed directly and used to fill table cells.
Applies To:
Product | Version | Category |
---|---|---|
AXPRO | 5.5 | Script |
AXPRO | 6.0 | Script |