Skip to Content

Displaying Picture In Picture Box Of User Defined Form

Nov 15, 2016 at 11:09 AM


avatar image

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.



10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
DIEGO LOTHER 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

Show 1 Share
10 |10000 characters needed characters left characters exceeded

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.