Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems with rave reports at runtime

Status
Not open for further replies.

eldruida

Programmer
Feb 22, 2008
3
ES
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.






 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top