How to Loop data from different frdataset

edited May 2004 in FastReport 2.xx VCL
frDBdataset1 --> datasource1
frDBdataset2 --> datasource2

frreport1.dataset := frDBDataSet1;

The example of data from frDBdataset
"frDBdataset1"
[DataModule1.ClientDataSet5."NAME"] = Mister A
[DataModule1.ClientDataSet5."SALE"] = 200$

Mister A ? 200$
Mister A ? 500$
Mister B ? 300$

"frDBdataset2"
[DataModule1.ClientDataSet1."NAME"] = Mister A
[DataModule1.ClientDataSet1."INC_COM"] = 730$

Mister A ? 730$
Mister B ? 325$


The report that I want is:
====================
Mister A ? 730$
 ? 200$
 ? 300$
------------------------------------
Mister B ? 325$
 ? 300$
--------------------------------------

How I put band and set on the report designer... ;)

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.