Re:Small query abt. TQuickReport
Quote
>I want to know iz it possible to use two datasets for a report All the
You can use as many datasets as you want. But QR "knows" only one -
refferred in its DataSet property. "Knows" here means, that QR iterates data
set from top to bottom, print detail band for each record, etc.
Typical case of more than one data set is "master-detail" relationship. If
you have two datasets linked in that manner, and master dataset is
QR.DataSet, than Delphi does all job for you. That is, QR will walk through
master dataset and Delphi will move cursor in "details" on each new master
record.
In more complex case you may have any number of datasets. But QR still
"knows" only one of them. Hence, you must take care of moving cursors in
other datasets yourself. For example in OnBeforePrint event of detail band,
you can make lookup (or whatever you need) in other tables to position
cursors.
Regards
Sergei Soudakov