locked
The EnableExternalImages property has not been set for this report vs2015 RRS feed

  • 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

Answers

All replies