Question reports does not show external image

Gideon

Member
Joined
Aug 31, 2015
Messages
8
Programming Experience
Beginner
I have the following code to generate a report. The external images only shows a red x.

After three days of trying everything I am about to give up as I have tried many suggestions. None are working.


Code:
  Dim path As String = "file:///" & "C:\Users\Administrator\Desktop\SKEDULERING\Grafieka\Plaaskaarte\" + txtPlaasno.Text + ".jpg"


        Me.ReportViewer1.LocalReport.Refresh()
        Me.ReportViewer1.LocalReport.EnableExternalImages = True
        Dim param1 As New ReportParameter("ReportParameterALIASNAAM", txtAliasnaam.Text)
        Dim param2 As New ReportParameter("ReportParameterPLAASNO", txtPlaasno.Text)
        Dim param3 As New ReportParameter("ReportParameterPLAASKAART", path)


        Try
            Me.OesskattingsTableAdapter.FillBySorteerAlpfanumeries(Me.SkeduleringDatabasisDataSet.Oesskattings)
            Me.ReportViewer1.LocalReport.SetParameters({param1, param2, param3})
            ReportViewer1.SetDisplayMode(DisplayMode.PrintLayout)


        Catch ex As Exception
            MessageBox.Show(ex.ToString)
        End Try
I have set the image value to =Parameters!ReportParameterPLAASKAART.Value. The MIME type to image/jpeg.

Please, please can someone help me?


Regards
 
Top Bottom