Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1615
ultraprintbox disposing of picture in vb.net
posted

I use an UltraPrintBox on a form  to allow a user to view a picture from a database path. After viewing the picture I use ultrapicturebox.dispose() to release or unlock the picture. When the user then tries to run a report (a stand alone crystal report) that has an ole object linked to the same picture it does not show the picture. It appears to still be locked by the viewing in the ultrapicturebox. Is there another way to dispose or release the picture file?

 

 

  • 53790
    posted

    Hello Jcom39201,

    I`m not familar with your scenario and it is difficult to say what is the reasons for this behavior. Could you please provide us more details about your connections with the database. Are you using TableAdapters? I suppose that the issue is in the connections (TabelAdapter or EDM or ....) instead of UltraPictureBox. If you are able to upload small sample I`ll be glad to research it for you.

    Let me know if you have any questions

    Regards