index > Team Foundation Server - Reporting > Report parameters problems

Report parameters problems


Hello

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

Dim Report_Param(0) As ReportParameter

Dim a As String = "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?




Yairt
Yairt

The folks in the Visual Studio Report Controls forum (http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=75&SiteID=1) may be able to help more

http://forums.microsoft.com/MSDN/ShowPost.aspx?PageIndex=2&SiteID=1&PostID=676697 has some information about passing Report Parameters.

What is the exception you are seeing?

Nick Ericson - MSFT

Hello

Thanks for your reply.

I figured out the problem.

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

I entered the report menu in the .rdlc file and them added the parameter "A" , then the code that I specified before worked.




Yairt
Yairt
reply 3

You can use google to search for other answers

 

More Articles

How to Remove the row which doesn't have data?
DateTimes become Dates in Warehouse/Reports?
Where is the areapath in reoprts in TFS RTM?
custom views in TFSWarehouse
How do I create a new QA Report in Team System
Improper Display in ReportViewer
Reporting on inforamtion in work item history?
How do I set default value for a dimension variable to a value ot...
msmdsrv using 50% cpu for minutes
error uploading reports
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

how to install report designer?
How to create a report on Work Item Links?
Nothing happens when pressing the Report…
Failed to load adapter
cubes issue
Trouble with VSTS / Sharepoint remoting …
Reporting on inforamtion in work item hi…
"TF53010: An unexpected condition h…
Adding Data Region to existing items
How to Remove the row which doesn't have…
Passing new parameters to Microsoft VB.N…
custom views in TFSWarehouse
Edit reports from Agile process template?
reports not showing up on home page
Error Executing reports

Hot Articles

Error in Customising a existing report
Can I customize the VSTS bug report?
cubes issue
Printing Reports from within Team Explorer
TfsWarehouse Database not updated with a…
Scenarios With No Tasks
Warehouse Troubleshooting Guide
How to force Repository Refresh?
How to validate parameters in the rdl it…
Workitem trends and filters
How to create report on custom defined p…
how to produce reports using rs with fea…
table pagination
"Hidden" reports in RTM ..
Problem with data stored on Warehouse in…

Recommend Articles

Requirements Test History and Overview n…
How to create a new Report in Team Found…
Setting for URL in Reporting services
How do i modify the filter on a report
Nothing happens when pressing the Report…
Another TFS Warehouse problem...
How to edit corewin_express.vsprops?
rsRenderingExtensionNotFound
How to prevent users from viewing other …
How to get "Current Week" in M…
Adding Data Region to existing items
Only Team Sytem cube is visible
Source Control Reporting
Standard team project reports have empty…
How to force Repository Refresh?