XtraReport 将 属性 显示为列表(表单应用程序)
XtraReport display property as list (Forms app)
我正在尝试显示列表中的每个对象,该列表是另一个对象的 属性。由于我的结构很复杂,我将用一个简单的例子来演示:
一个作者有一个 属性 他的书单,但是报告应该显示每个作者和每本书。
我无法显示每本书,报告只显示一位作者和他的第一本书,而不是其他的。
平台是用于桌面表单的 C#,使用 Entity Framework。
参考这个 - Master-Detail Report using custom DataSource ( ArrayList)
Take a look at the A Good Example for Runtime Creation of Detailed
Reports with Subreports which utilizes generic List as
datasource report that demonstrates how to create a master-detail
report dynamically using a list of object.
参考文献:
How to show nested list in report?
How to: Bind a Report to a Collection that Implements the ITypedList Interface
希望对您有所帮助..
我正在尝试显示列表中的每个对象,该列表是另一个对象的 属性。由于我的结构很复杂,我将用一个简单的例子来演示:
一个作者有一个 属性 他的书单,但是报告应该显示每个作者和每本书。
我无法显示每本书,报告只显示一位作者和他的第一本书,而不是其他的。
平台是用于桌面表单的 C#,使用 Entity Framework。
参考这个 - Master-Detail Report using custom DataSource ( ArrayList)
Take a look at the A Good Example for Runtime Creation of Detailed Reports with Subreports which utilizes generic List as datasource report that demonstrates how to create a master-detail report dynamically using a list of object.
参考文献:
How to show nested list in report?
How to: Bind a Report to a Collection that Implements the ITypedList Interface
希望对您有所帮助..