Hi,

I've problem in displaying image on my rdlc (Microsoft Report Viewer) report. I took picture box on my report and made its properties as SOURCE=EXTERNAL, VALUE=Parameters!Path.value where Path is my Report Parameter.

Below is the code to display image on Report load event:

 Dim paramList1 As New Generic.List(Of ReportParameter)
        paramList1.Add(New ReportParameter("Path", "+ /images/CPC.jpg"))
        Me.ReportViewer1.LocalReport.SetParameters(paramList1)

I'm facing problem on the second line of my code i.e. " + /images/CPC.jpg"

Plz help me, I'm stuck here.

Following is the error:

Conversion from string " /images/CPC.jpg" to type 'Double' is not valid.

Thanks

Is the type of Parameters!Path a string?

Yeah...
Its a string...

Sorry, I don't know. That was my only idea.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.