Print Page | Close Window

Index was outside the bounds of the array

Printed From: Crystal Reports Book
Category: Crystal Reports 9 through 2020
Forum Name: Technical Questions
Forum Discription: Formulas, charting data, Crystal syntax, etc.
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=19765
Printed Date: 30 Apr 2024 at 9:47am


Topic: Index was outside the bounds of the array
Posted By: WillieT
Subject: Index was outside the bounds of the array
Date Posted: 15 Jul 2013 at 9:09am
I receive an "Index was outside the bounds of the array" message when I use SetParameterValue() to set subreport parameters.
 
parameter variable values
myReport.SetParameterValue("JOBID", "15823", "JR076_CR11_SUB")
 
VB.NET code
myReport.SetParameterValue(strParm, strVal, mySubReportName
 
When I use SetParameterValue() to set main report parameters I receive no errors.
 
Any ideas?



Replies:
Posted By: lockwelle
Date Posted: 15 Jul 2013 at 11:00am
Correct me if I'm wrong, but are subreports usually self-sufficient? The main report passes all the info that is needed? I've never had a subreport that didn't link to the main report.

I realize that they could exist.



Print Page | Close Window