Showing results for 
Search instead for 
Did you mean: 

Dynamically Changing A Picture At Runtime With VB.Net 2008

Former Member
0 Kudos

I have inserted a picture object into a Crystal Report and set the Graphic Location for that object to a parameter field which I have called "picPath". In my Vb.Net code I hard coded the location using the following line of code:


My problem is that this code works sometimes and other times it does not. I have also tried with and without the quotation marks around the path location which did not help. Any help resolving this issue would be greatly appreciated. Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Active Contributor
0 Kudos

Using the Graphic Location is a good way to change the image at runtime. Have you looked at the security settings for the image file and folder yet? It could be that your application - web or windows - doesn't have the appropriate read permissions to that file.

If this is a web app that is especially true. I suggest you look at using Process Monitor to figure out what is going on.

Answers (0)