Linking a jpg to an ole picture control

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
 
D

Dirk Goldgar

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top