I want to have a datawindow that contains a different image for each row. I created a picture object and put it in the detail band. I also added a regular string column 'pic_object' (external datawindow).
What I want is something like this:
Row 1 dog.png
Row 2 cat.png
row 3 mouse.png
If I do this: dw_1.Object.p_1.Filename = 'C:\dog.png' it works but sets the picture image for all rows.
I then tried adding a compute column that has this as the expression bitmap( pic_object ). So I insert row one and set pic_object to 'C:\dog.png' thinking pic_object might display my picture but it doesn't work.
Any help is appreciated.
s_pic = "C:home_hover.png'" (see the extra quote mark?) That's why it didn't work - works now. BTW - thanks to everyone here that takes the time and effort to help me out in all my questions. I really appreciate it and it save so much time and headache.
- avoid hard coding paths to objects like images
- make sure you use a pbr to make sure they are included in you release