cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying Picture In Picture Box Of User Defined Form

Former Member
0 Kudos

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.

Regards,

Nikita

Accepted Solutions (1)

Accepted Solutions (1)

former_member185682
Active Contributor
0 Kudos

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:

https://archive.sap.com/discussions/thread/3296452

https://archive.sap.com/discussions/thread/3453328

https://archive.sap.com/discussions/thread/1476381

Hope it helps.

Kind Regards,

Diego Lother

Former Member
0 Kudos

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.

Regards,

Nikita

Answers (0)