Community

Set the value of Picture Field

Hello,

I have a picture stored in a location (e.g. "C:\temp") which I want to display on the FlexiCapture DataForm.

I tried to do the following:
Document.Field("Section1\\Picture1").Value = System.Drawing.Image.FromFile("C:\\temp\\image1.png")

But I got errors:
System.Runtime.InteropServices.COMException (0x80004005): This operation is not allowed.
   at ABBYY.FlexiCapture.IField.set_Value(Object _result)
   at Main.Execute(IDocument Document, IProcessingCallback Processing)


Is this the correct way to set the value of Picture object?

Thanks.

 

Was this article helpful?

0 out of 0 found this helpful

Comments

1 comment

  • Avatar
    Permanently deleted user

    Hello,

    If you need to insert the image into the field and display it on the Data Form, this image should be a part of document previously loaded into the FlexiCapture and recognized there. After you've done it, you may use entire document's page or its part to show them on the DataForm as pictures.

    0

Please sign in to leave a comment.