How to create Master/Detail report with help of VB6 and TfrxUserDataset
Frankly say I have never used Microsoft Visual Basic 6 until begin my job in Fast Reports. I can't say that VB6 is my favorite language but it is good enough to make many things. I recieve many questions how to build a Master/Detail report based on application's data.
VB6 example demonstrate how to create Master/Detail report with help of TfrxUserDataset.
Have a look to detail_dataset_OnGetValue subroutine . Return value depends on current index of Master Dataset.
Have a look to detail_dataset_OnCheckEOF subroutine. Return value depends on count of detail records linked to a current master dataset record.
The example code above is simplified, therefore each record includes 20 subdetail records.
There is one important issue. By some unknown reason, application running in VB6 development environment will not receive any events from FastReport.DLL.
To make this example workable, you should compile it into executable file.