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

Re: Display image on rdlc report viewer 80 80

Is the type of Parameters!Path a string?

Re: Display image on rdlc report viewer 80 80

Yeah...
Its a string...

Re: Display image on rdlc report viewer 80 80

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 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.