I'm just trying to find my way around FastReports for the first time using Delphi XE2.

I want to export the contents of a TListView as Fast Report.

Using frxUserDataSet I have managed to get the columns of the data exported into a report (following the supplied demo)

However the TListView information is divided up using Groups.

I would like to display these as either the Master Data, or as a Header in the report.

I only seem to be able to trigger the Master Detail once for the data set...

Update On further investigation I've managed to get the groups to repeat by having a separate UserDataSet for the groups linked to the Master Data. However there seems to be no way to link the Detail Group to the Master Group - so I now have the correct no. of groups, each with the full set of records...

Any ideas?

有帮助吗?

解决方案

It turns out that there is a demo in the FastReports/Demos folder that illustrates exactly what I was trying to do.

Unfortunately this demo is not mentioned in any of the documentation regarding frxUserDataSets

For anyone who wants to build multi-tier reports, using User Data Sets look at the demo in

Program Files/FastReports/Demos/MasterDetailUDS
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top