Click here to Skip to main content
15,883,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have a picture box on my SSRS data report. I want to load picture from a location using code. In Winforms we can use Image.FromFile, but how to do it in SSRS?


Thanks
Furqan
Posted

Hello,

image has property for the path provide that path. and set the property external if it is an external image. or set from DB if it is coming from Database.

thanks
sanjeev
 
Share this answer
 
Comments
Furqan Sehgal 6-Jul-11 7:42am    
Thanks ! but I donot know the path. Image will be selected from OpenFileDialog box. How to pass this value?
If you want to pass a value to the report you need to use a report parameter.
Then you can use the parameter to have the path/name.

how-to-pass-parameters-to-ssrs-report-programmatically[^]
 
Share this answer
 
v2
Comments
Furqan Sehgal 6-Jul-11 10:58am    
Is there any simple way like we have in winforms, image.fromfile?
Thanks
Furqan

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900