ActiveReport 3:为CrossTable添加动态列
我在 ActiveReport 3 下,需要创建具有动态数量的列和行的 CrossTable。
ActiveReport 3 给出的示例已将修复列放入设计视图中,这很糟糕。
有一个解决方案可以在 Active Report 3 下创建真正的交叉表吗?
现在我尝试处理这些事件:
_ReportStart
_DataInitialize
_FetchData
I am under ActiveReport 3 and I need to create CrossTable with dynamic number of Columns and Rows.
The example given with ActiveReport 3 has put fix columns in design view and it's bad.
There is a solution up there to create real cross table under Active Report 3?
For now I try with these events:
_ReportStart
_DataInitialize
_FetchData
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 ActiveReports 中,您需要使用基于数据源的代码动态添加列(字段/文本框)。您可以查看此演练,了解如何动态地创建报告。本演练不会创建交叉表,但它展示了如何动态添加字段。要创建交叉表,您只需将文本框并排且一个接一个地添加到报表中即可。交叉表中所需的每一列都有一个。
旧版 ActiveReports 的文档可在 旧版文档页面 上找到,该页面可从主要 ActiveReports 文档站点。
In ActiveReports you need to dynamically add the columns (fields/textboxes) using code based on your datasource. You can see this walkthrough for a detailed example of how to dynamically create a report. The walkthrough does not create a crosstab but it does show how to add fields dynamically. To create a crosstab, you will essentially just add your textboxes onto the report side-by-side and one-after-the-other. One for each column you want in your crosstab.
Documentation for the older versions of ActiveReports are available on the Legacy Documentation page, which is linked from the main ActiveReports documentation site.