Community

finding the InvoiceNumber

Hi,

I have a specific vendor where we sometimes have issues with extracting the correct Invoicenumber.
Sometimes the value I look for will be to the right of the keyword "InvoiceNumber" and sometimes it will be below.

I manage to find these just fine. BUT.

I am struggling when the InvoiceNumber format looks like these examples:

LF123456      1
SKF2345678        4
GH9876545678        5

The digit you see to the far right is actually a pagenumber and should not be included in the string.
How can I handle this the best way? I do not know how many digits the string will have it will differ,
But I need to be able to handle this ? I tried with regular expression, but can't get it working.

Thank you for any hints, you may have in advance.
Best Regards.

 

 

    


 

Was this article helpful?

0 out of 0 found this helpful

Comments

2 comments

  • Avatar
    Permanently deleted user

    Solved it by using more narrow search areas. Works fine. I am however still interested if someone has a different solution.

     

    Best Regards.

    0
  • Avatar
    Permanently deleted user

    Hello,

    You may use the autocorrection script that will remove the last symbol recognized in the field.

    If the extra symbol is always present, you may just trim the last symbol.

    If you need to decide, is the last symbol the page number or not, then you may use the FlexiCapture IValue::Symbols[i].Rect.(coordinate name) object, for example to find the distance between the last and previous symbols and to compare this distance with the symbol width.

    http://help.abbyy.com/en-us/flexicapture/12/developer/script_conversion

    http://help.abbyy.com/en-us/flexicapture/12/developer/ivalue

    If you are interested in this approach but more assistance is needed, please contact your regional support with the copy of your project and some images samples.

    0

Please sign in to leave a comment.