Linking a jpg to an ole picture control

  • Thread starter Thread starter Ben dotNet
  • Start date Start date
B

Ben dotNet

I am just a newbie, so, please have mercy on me.
I am trying to link a different picture in code every time a different
record is accessed.

I change the .sourcedoc of my unbound ole object to the path\filename.jpg,
and nothing happens.
The code executes, and no errors occur.
What am i doing wrong?

Thanks for you help
Ben
 
Ben dotNet said:
I am just a newbie, so, please have mercy on me.
I am trying to link a different picture in code every time a different
record is accessed.

I change the .sourcedoc of my unbound ole object to the
path\filename.jpg, and nothing happens.
The code executes, and no errors occur.
What am i doing wrong?

Thanks for you help
Ben

I'd suggest you use an unbound image control instead. Make sure its
PictureType property is set to Linked, and then set its Picture property
to the path and filename.
 
Back
Top