コミュニティ

Getting one extra character in the Barcode field 回答済み

Hi,

I have a Bar Code field, it is recognizing correctly and getting the correct value but one extra character is adding every time. How to remove that extra character??

この記事は役に立ちましたか?

0人中0人がこの記事が役に立ったと言っています

コメント

8件のコメント

  • Avatar
    Permanently deleted user

    You can modify the text of Barcode field, for example, in the Event Handler "After document state changed" after Recognition stage.

    0
  • Avatar
    Permanently deleted user

    How can i modify the text using script. Could you help me with that please?

    0
  • Avatar
    Permanently deleted user

    Hello,

    Please look at this sample:

     

    if (ChangedStates.Has(2)) //after recognition

    {

        if (Document.HasField("Document Section 1\\Barcode")) //full path to your barcode field should be written

        {

            Document.Field("Document Section 1\\Barcode").Text = ...; //here is some new value of your Barcode field

        }

    }

    0
  • Avatar
    Permanently deleted user

    Where should i write the script?

    0
  • Avatar
    Permanently deleted user

    Project > Project properties > Event Handlers tab > check "After document state changed" > Edit Script...

    0
  • Avatar
    Permanently deleted user

    Hi Ekaterina,

    I tried with the script which you have given,  I don't need the new value their I just want to remove the extra character which is coming at last every time.

    How to remove that extra character??

    0
  • Avatar
    Permanently deleted user

    Hello,

    The previous script shows how to get text string from your barcode. Then you may use standard .Net methods from programming languages for delete the symbol.

    If you need more deeper consultation about the script please connect your regional support or Professional Service.

    0
  • Avatar
    Permanently deleted user

    Ok. Thank you

    0

サインインしてコメントを残してください。