Click here to Skip to main content
15,885,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to add an external image to rdlc. I did something but picture couldn't be seen.I have created a new parameter. I called it Image. Then I have added an image from toolbox and choose external on popup then clicked fx. Then I entered

=Parameters!Image.Value

Then on my form I wrote:

C#
reportViewer1.LocalReport.EnableExternalImages = true;
ReportParameter parameter = new ReportParameter("Image", "logo.bmp");
reportViewer1.LocalReport.SetParameters(parameter);

this.reportViewer1.RefreshReport();



Could anyone help me?
Posted

1 solution

 
Share this answer
 
Comments
alidayan 8-Aug-14 8:35am    
Thank you but it is an asp.net web application with sql server. I don't have sql database I have access database. So I can't use Server.MapPath
Avik Ghosh22 13-Aug-14 5:57am    
ohh...
Member 13423986 27-Sep-17 2:59am    
So... Any ideas ? I need some help too for the same problem... Thank you.

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