Hello.
I'm using delphi 2007 with ravere ports 7.5 be, and ado
I need to do a report from database.
If I create it in design mode, using components, it works perfectly. Delphi make all the job very well.
But, if I create a adodataset object at runtime, to pass a commandtext, it fails. IT Says, "unable to gain control of RAVE DATA comunication system.
This is the code:
adodatasetMeu := TADODataSet.Create(self);
adodatasetMeu.Connection := form4.ADOConnection1;
adodatasetMeu.CommandText := 'select * from visita';
adodatasetMeu.open;
RvDataSetConnection1.DataSet := adodatasetMeu;
RvProject1.Open;
RvProject1.SelectReport('Report2', false);
RvProject1.Execute;
RvProject1.Close;
Maybe, I've left some instructions. I don't know.
There isn't much documentation obout rave reports.
Thanks.
I'm using delphi 2007 with ravere ports 7.5 be, and ado
I need to do a report from database.
If I create it in design mode, using components, it works perfectly. Delphi make all the job very well.
But, if I create a adodataset object at runtime, to pass a commandtext, it fails. IT Says, "unable to gain control of RAVE DATA comunication system.
This is the code:
adodatasetMeu := TADODataSet.Create(self);
adodatasetMeu.Connection := form4.ADOConnection1;
adodatasetMeu.CommandText := 'select * from visita';
adodatasetMeu.open;
RvDataSetConnection1.DataSet := adodatasetMeu;
RvProject1.Open;
RvProject1.SelectReport('Report2', false);
RvProject1.Execute;
RvProject1.Close;
Maybe, I've left some instructions. I don't know.
There isn't much documentation obout rave reports.
Thanks.