コミュニティ

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.

 

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

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

コメント

1件のコメント

  • 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

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