Skip to Content
avatar image
Former Member

Displaying Picture In Picture Box Of User Defined Form

Hi All

I have a requirement where in I need to display a picture in the picture box of a user defined form.

I have created the Field as follows:

CreateUDO.AddFieldToTable(oCompany, "I_GatePass", "DrivPic", "DrivPic", SAPbobsCOM.BoFieldTypes.db_Alpha, 200, BoFldSubTypes.st_Image)

and I have also set the path in ...System Initialization >> General Settings >> Path >> Pictures Folder.

When I double click on my UDF I am able to select the image too but post selection the image is not getting displayed in picture box and I get a message "Picture Was Not Found".

Can anyone please guide me and tell me where I am going wrong.



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Nov 16, 2016 at 12:33 AM

    Hi Nikita,

    I never needed to use this type of field, but what I understood is that field just save the name of the image, and when you use in a picture box, the path to picture is incomplete.

    There are some threads with approachs for this situation:

    Hope it helps.

    Kind Regards,

    Diego Lother

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Diego

      Yes I was unable to get the complete picture path. I went through the threads you suggested and it helped me solve the issue. Thanks for your help.