BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

List index out of bounds(-1) when Rave Format field is blank

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Thirdparty Tools (RaveReports)
View previous topic :: View next topic  
Author Message
Benj Nunez
Guest





PostPosted: Fri Apr 20, 2007 2:21 pm    Post subject: List index out of bounds(-1) when Rave Format field is blank Reply with quote



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
Back to top
Eldon Lewis
Guest





PostPosted: Thu Apr 26, 2007 11:25 pm    Post subject: Re: List index out of bounds(-1) when Rave Format field is b Reply with quote



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

"Benj Nunez" <benjnunez (AT) gmail (DOT) com> wrote in message
news:1177060880.840148.313610 (AT) q75g2000hsh (DOT) googlegroups.com...
Quote:
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
Back to top
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Thirdparty Tools (RaveReports) All times are GMT
Page 1 of 1

 
 


Powered by phpBB © 2001, 2006 phpBB Group
.