Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error in ReportViewer with Available Parameter Values From Query

Status
Not open for further replies.

andrea96

Programmer
Jan 26, 2001
201
US
I'm getting an error ("Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index") when running a server report in the ReportViewer control in VB .NET 2005. This error does not occur every time the report is executed or refreshed. The report runs fine on the report server with the same parameter values entered. Also, when I get the error in ReportViewer, I can click "View Report" without changing any parameter values, and the report will run without any errors.

The error appears to be caused by having a parameter with available values from a query. When I change the parameter available values to non-queried, I no longer get the error. The report was created in Visual Studio .NET 2005. Has anyone run into this problem? Is this a bug in the ReportViewer control?

Thanks,
Andrea
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top