 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
iromero Guest
|
Posted: Thu Jul 21, 2005 6:45 am Post subject: Error: Unable to gain control of RAVE data communication sys |
|
|
Hi all! I have a problem. I have developed an application that,
depending on some parameters keyed into a form, it prints one page. Well, it
works fine but, after printint several pages, the application raise this
error: unable to gain control of RAVE data communication system. Then, I
have to close the application and restart againg. The problem is that this
application is used by people that haven't ever seen a computer and if they
see this error then they stop working.
I'm using Delphi 7 and Rave 5 (shipped with Delphi), connection to an
AS/400 via ADO, and the code that I use for printing:
RvProject.SetProjectFile('MyProject.rav');
RvProject.Open;
RvProject.SetParam('Image1', 'bmp1.bmp');
RvProject.SelectReport('rptMyReport', False);
RvProject.Execute;
RvProject.Close;
Could someone help me, please?
Thanks in advance.
|
|
| Back to top |
|
 |
Thomas Pfister Guest
|
Posted: Sat Jul 23, 2005 8:14 am Post subject: Re: Error: Unable to gain control of RAVE data communication |
|
|
Direct DataViews are not designed to be thread safe. Therefore, if you are
running multiple
instances of an application using Direct Data Views when using Rave you are
very likely to get error
messages about gaining control of Rave.
The most likely reason errors are being generated is because the separate
applications' Direct
DataView groups are colliding. If you need to run multiple programs with
separate reporting direct
data view groups, set RPDefine.DataID to a unique value and the separate
apps will not collide.
Setting the DataID value needs to be done prior to executing any reports. It
is recommended that
you do this in the OnCreate event of your main form and use something that
will be unique to the
application.
:-) thomas
"iromero" <i.romero (AT) kamax (DOT) es> schrieb im Newsbeitrag
news:42df42bb (AT) newsgroups (DOT) borland.com...
| Quote: | Hi all! I have a problem. I have developed an application that,
depending on some parameters keyed into a form, it prints one page. Well,
it
works fine but, after printint several pages, the application raise this
error: unable to gain control of RAVE data communication system. Then, I
have to close the application and restart againg. The problem is that this
application is used by people that haven't ever seen a computer and if
they
see this error then they stop working.
I'm using Delphi 7 and Rave 5 (shipped with Delphi), connection to an
AS/400 via ADO, and the code that I use for printing:
RvProject.SetProjectFile('MyProject.rav');
RvProject.Open;
RvProject.SetParam('Image1', 'bmp1.bmp');
RvProject.SelectReport('rptMyReport', False);
RvProject.Execute;
RvProject.Close;
Could someone help me, please?
Thanks in advance.
|
|
|
| Back to top |
|
 |
iromero Guest
|
Posted: Tue Jul 26, 2005 8:41 am Post subject: Re: Error: Unable to gain control of RAVE data communication |
|
|
Thanks for your help. I'm going to test it and I'll tell you if it's all
right.
Thank you very much againg.
Thomas Pfister escribió en mensaje <42e1fbdb$1 (AT) newsgroups (DOT) borland.com>...
| Quote: | Direct DataViews are not designed to be thread safe. Therefore, if you are
running multiple
instances of an application using Direct Data Views when using Rave you are
very likely to get error
messages about gaining control of Rave.
The most likely reason errors are being generated is because the separate
applications' Direct
DataView groups are colliding. If you need to run multiple programs with
separate reporting direct
data view groups, set RPDefine.DataID to a unique value and the separate
apps will not collide.
Setting the DataID value needs to be done prior to executing any reports.
It
is recommended that
you do this in the OnCreate event of your main form and use something that
will be unique to the
application.
:-) thomas
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|