Report Parameters Probloms

Hello

I'm trying to pass parameters to a .rdlc report with no success using this code:

Dim Report_Param(0)As ReportParameter

Dim aAsString ="A"

Report_Param(0) =New ReportParameter("A", a)

ReportViewer1.LocalReport.SetParameters(Report_Param)

ReportViewer1.LocalReport.Refresh()

The exception is generated in the SetParameters command.

Does anybody know what is the problem?

[662 byte] By [Yairt] at [2007-12-24]
# 1
What is the exception message you are seeing?
BrianHartman-MSFT at 2007-10-8 > top of Msdn Tech,Visual Studio,Visual Studio Report Controls...
# 2

Hello

Thanks for your reply.

I figured out the problem.

it was necessary also to declare the parameter in the .rdlc file itself using the report menu.

Yairt at 2007-10-8 > top of Msdn Tech,Visual Studio,Visual Studio Report Controls...

Visual Studio

Site Classified