Hi
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!
Thanks
Reuben
コメント
3件のコメント
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]
Hello,
Please use the Document.Field("Document Section\Field Name").Value.Text = "Test" string.
It is possible that the fields are not yet available at the stage when your script tries to execute.
サインインしてコメントを残してください。