Click here to Skip to main content
15,887,822 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Hi,
I have a picture box on SSRS. I want to load a picture to it, for exam from
D:\Pictures\TV1.jpg (actually user will decide it by using OpenFileDialog)

I have set the Source to external and in Value expression I tired
="D:\Pictures\TV1.jpg"
and
Also
="/<d:\pictures>\TV1.jpg"

but my picture box shows error picture in both cases.

Please advise what is wrong.

Thanks
Furqan
Posted
Updated 16-Jul-11 21:50pm
v2

Put


file:D:\TV1.jpg


=" " not to be used.................

Done.................
 
Share this answer
 
v2
Select the source type to be external
 
Share this answer
 
Comments
Furqan Sehgal 8-Jul-11 2:20am    
As I mentioned in my question, I have already done it.
If you use the whole path and you are deploying the reports in the server maybe that's the problem, because it's trying to load a path that it's not shared or accesible.

I'll try to use the source as "Database", it's not the easiest way but it should work. When the user chooses the image with the OpenFileDialog you save that image in the DB and then pass the name to the report as parameter and load the image.

"Please do not repeat the same question again, you already asked it, you can modify it, if it's necessary."
 
Share this answer
 
Comments
Furqan Sehgal 9-Jul-11 2:30am    
Thank you very much for the response.
I am trying to save the full path into the database and then pass it to the report.
But that is also not working.
The trick is to put
File:D:\Pic.jpg


Do not put "=
You may also need to set external image as

Me.ReportViewer1.LocalReport.EnableExternalImages = True
before the report is being refreshed
 
Share this answer
 
Thanks KF,

After scanning several blogs, your solution was the first that worked. :)

I was able to implement this using the full network path as follows
file:\\servername\folder\mypicture.jpg

Leo
 
Share this answer
 

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