FastReport Print always the same data set - Why?
Hello,
i want to produce a mass letter with Fast Report and C++ Builder. For this, i create my Report and connect this form with my db. In the DB i have four data sets. On my C++ Builder i have a button and when i click the button then the form will be printet. This is ok. I get four prints. But, on the prints it is everytime the same data set.
When i click the Button, that starts a loop in this i print the Report and after the print i go to the next data set in my db.
What can i do that the Report go also to the next data set?
i want to produce a mass letter with Fast Report and C++ Builder. For this, i create my Report and connect this form with my db. In the DB i have four data sets. On my C++ Builder i have a button and when i click the button then the form will be printet. This is ok. I get four prints. But, on the prints it is everytime the same data set.
When i click the Button, that starts a loop in this i print the Report and after the print i go to the next data set in my db.
What can i do that the Report go also to the next data set?
Comments
take a look at the main demo add in objects richtext.
the data is controlled by the connection of the data set to the masterdataband.
or if you just have text objects on a design page connect the tfrxreport component to a userdataset
and write code in delphi for the events of the dataset to control the record position.