Answered by:
The EnableExternalImages property has not been set for this report vs2015

Question
-
Hi,
Would appreciate the help.
I have added an image to my report which i want to be dynamic. When I run the report i get the following error:
- An error occurred during local report processing.
- Report 'HanmakaReport' contains external images. The EnableExternalImages property has not been set for this report.
vb.net code
Public Sub InitReport() Dim MeetingDS As DataSet = Me.GetReport reportViewer1.Reset() reportViewer1.LocalReport.ReportPath = "Test\Report.rdlc" Me.reportViewer1.LocalReport.EnableExternalImages = True reportViewer1.LocalReport.DataSources.Add(New ReportDataSource("DsMembersDetails", MeetingDS.Tables(0))) reportViewer1.LocalReport.DataSources.Add(New ReportDataSource("DsTable1", MeetingDS.Tables(1))) reportViewer1.LocalReport.DataSources.Add(New ReportDataSource("DsTable2", MeetingDS.Tables(2))) reportViewer1.ProcessingMode = ProcessingMode.Local Dim templateImage = "file:///C:\Work\websites\SourceSafe\test\test\images\question9.jpg" reportViewer1.LocalReport.SetParameters(New ReportParameter("ImagePath", templateImage)) End Sub
This is what I did:
The image expression is: = Parameters!ImagePath.Value
Wednesday, February 24, 2016 4:09 PM - An error occurred during local report processing.
Answers
-
Or set the property to true on the reportviewer control, if you trust the image source.
Brad Syputa, Microsoft SQL Server Business Intelligence This posting is provided ASIS with no warranties.
- Marked as answer by Charlie Liao Monday, March 7, 2016 9:35 AM
Wednesday, February 24, 2016 8:33 PM -
Hi Collie,
According to your description, you need to display a dynamic image in your reportviewer control, right?
You can add either embedded or external images.-
With an embedded image, the source file is compiled as part of the report. If a report only uses embedded images, then you can set the EnableExternalImages property to No.
-
With an external image, the source file is stored outside of the report in a location that must be accessible from the RoleTailored client, such as on a file server or local computer. The image is referenced from the report and loads when the report opens. To use external images on a report, the EnableExternalImages property must be set to Yes.
Reference
http://www.codeproject.com/Articles/38554/Microsoft-Reporting-Services-Part-II#StoredImages
https://msdn.microsoft.com/en-us/library/ff477109.aspxRegards,
Charlie Liao
TechNet Community Support- Proposed as answer by Charlie Liao Monday, March 7, 2016 1:49 AM
- Marked as answer by Charlie Liao Monday, March 7, 2016 9:35 AM
Thursday, February 25, 2016 2:51 AM -
All replies
-
Hi,
Select embed and upload the pic it will work.
Wednesday, February 24, 2016 5:59 PM -
Or set the property to true on the reportviewer control, if you trust the image source.
Brad Syputa, Microsoft SQL Server Business Intelligence This posting is provided ASIS with no warranties.
- Marked as answer by Charlie Liao Monday, March 7, 2016 9:35 AM
Wednesday, February 24, 2016 8:33 PM -
Hi Collie,
According to your description, you need to display a dynamic image in your reportviewer control, right?
You can add either embedded or external images.-
With an embedded image, the source file is compiled as part of the report. If a report only uses embedded images, then you can set the EnableExternalImages property to No.
-
With an external image, the source file is stored outside of the report in a location that must be accessible from the RoleTailored client, such as on a file server or local computer. The image is referenced from the report and loads when the report opens. To use external images on a report, the EnableExternalImages property must be set to Yes.
Reference
http://www.codeproject.com/Articles/38554/Microsoft-Reporting-Services-Part-II#StoredImages
https://msdn.microsoft.com/en-us/library/ff477109.aspxRegards,
Charlie Liao
TechNet Community Support- Proposed as answer by Charlie Liao Monday, March 7, 2016 1:49 AM
- Marked as answer by Charlie Liao Monday, March 7, 2016 9:35 AM
Thursday, February 25, 2016 2:51 AM -
-
Thanks!Friday, April 5, 2019 2:44 PM