Changing field values in event handlers

  • Last Post 30 August 2019
ReubenB posted this 21 May 2019


I am having difficulty finding field values using the Document.Field method. My current project has one document with 8 sections.

My code looks like this: Document.Field("Document Section\Field Name").Value = "Test". It is running After document state changed.

However, after recognition, the value remains unchanged. The log shows an exception:

Document 2: Page 1: Error in the 'After document state changed' event: System.Runtime.InteropServices.COMException (0x80004005): No field with name 'Document Section\Field Name'.      at ABBYY.FlexiCapture.Idocument.Field(String_Name   at Main.Execute(IDocument Document, IScript

If anyone can help, it would be much appreciated!



Order By: Standard | Newest | Votes
ReubenB posted this 21 May 2019

If it also helps, the document sections can appear any number of times (set min 0, max 100) so during verification sections come as Document Section [1]

Ekaterina posted this 30 August 2019


Please use the Document.Field("Document Section\Field Name").Value.Text = "Test" string.