Changing field values in event handlers

  • Last Post 5 weeks ago
ReubenB posted this 5 weeks ago


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!



ReubenB posted this 5 weeks ago

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]