Click here to Skip to main content
16,020,377 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everyone
I'm using microsoft report viewer 2010. I want to add external image but i get this error:

An error occurred during local report processing.
Report 'Report' contains external images. The EnableExternalImages property has not been set for this report.

in RDLC file image source is External and expression is :

="file:///" + Parameters!CompanyLogo.Value
OR
="file:///" & Parameters!CompanyLogo.Value
C#
string strLogo = Server.MapPath(ResolveUrl("~/images/logo.png"));
List<ReportParameter> reportParams = new List<ReportParameter>();
reportParams.Add(new ReportParameter("CompanyName", "CompanyName", false));
reportParams.Add(new ReportParameter("CompanyLogo", strLogo, false));

reportViewer.LocalReport.EnableExternalImages = true;
reportViewer.LocalReport.SetParameters(reportParams);
reportViewer.LocalReport.Refresh();


but anyway i get same error.

Help!
Posted
Updated 19-Feb-13 21:23pm
v2

1 solution

Dear.!

I am using Report Viewer, the URL is stored in string format in the database field name URL, i want to show the image on report viewer dynamically, I want to display image according to the stored URL string, So please! if you have any idea get me the step wise clear solution of this problem.

Please! Send me the all over step wise solution also code if it is possible ..........
 
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