Discussion:
List index out of bounds(-1) when Rave Format field is blank
(too old to reply)
Benj Nunez
2007-04-20 09:21:20 UTC
Permalink
Hello experts!

Recently I was using Rave to produce a report for my employer. I
chance upon this error message: "List index out of bounds(-1)". Here's
how to reproduce it:

1. In your Delphi code, make a call to Execute:

RvProject.Execute;

2. When the Output Options dialog appears, choose "File" as your
Report Destination.
3. Type in a filename (e.g. Test). I think you may or may not include
the file extension.
4. Now, intentionally leave the Format field blank (The part where you
choose *.ndr, *prn, etc.).
5. Click Ok

After clicking Ok, you get this error, BUT the file gets saved. I am
just wondering if there's a fix for this already. If there's none, can
anyone tell
me if there's a way to remove/hide this message?


--Benj
Eldon Lewis
2007-04-26 18:25:21 UTC
Permalink
I'm not sure why you would ever want to blank this field out. However, I
have now changed the format dropdown to a dropdownlist, which should prevent
this from happening. This will be in the next release. However, you do
have the option of overriding the SetupForm and providing one of your own.
See the tips and tricks for how to do this.

Eldon Lewis
Nevrona Designs
Post by Benj Nunez
Hello experts!
Recently I was using Rave to produce a report for my employer. I
chance upon this error message: "List index out of bounds(-1)". Here's
RvProject.Execute;
2. When the Output Options dialog appears, choose "File" as your
Report Destination.
3. Type in a filename (e.g. Test). I think you may or may not include
the file extension.
4. Now, intentionally leave the Format field blank (The part where you
choose *.ndr, *prn, etc.).
5. Click Ok
After clicking Ok, you get this error, BUT the file gets saved. I am
just wondering if there's a fix for this already. If there's none, can
anyone tell
me if there's a way to remove/hide this message?
--Benj
Loading...