Quick Report and TOracleQuery

sadkat

Member
I'm in Delphi 5.
It seems to be impossible to use a TOracleQuery component as a QuickReport Data Set, but it was possible with the common TQuery component.

Do I have to use TOracleDataSet in my reports or is possible to use the TOracleQuery in a way I cannot see?

Thanks.
 
Despite the name, TOracleQuery does not inherit from TQuery/TDataset, but from TComponent, so even in principle TOracleQuery is not usable in an environment where a dataset plug-in is needed (like QuickReport). TOracleDataSet does inherit from TDataSet (like TQuery and TDBDataSet and (shudder) TBDEDataSet).

I'm curious as to why you would want to use a TOracleQuery. Do you have an example which can't be reformulated as a TOracleDataSet?

P.S.
Had an ISDN problem. Hope this isn't a double post.

Originally posted by sadkat:
I'm in Delphi 5.
It seems to be impossible to use a TOracleQuery component as a QuickReport Data Set, but it was possible with the common TQuery component.

Do I have to use TOracleDataSet in my reports or is possible to use the TOracleQuery in a way I cannot see?

Thanks.

------------------
Frans
 
I also tried to use OracleQuery with QR, just because I was used to do so in desktop db's. With SQL it is much easier to query for QR. Then I realized that TOracle Dataset has the SQL property and it can be used in the same way with QuickRep as normal TQuery :-). To me TOracleDataset is like a combined TDataset and TQuery, well sort of.

georgh
 
Back
Top