且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

创建水晶报表时遇到问题!

更新时间:2023-11-22 11:05:22

表或视图对Crystal Reports或与此相关的任何其他报告没有任何影响.

至于第二件事,我不使用Crystal Reports,所以我不知道.
Tables or Views doesn''t make any difference to Crystal Reports, or any other reporting for that matter.

As for the second thing, I don''t use Crystal Reports, so I don''t know.


1. 您需要记录(数据源),无论您使用的是表还是视图,或者数据来自sp或简单的sql查询或xml等...
毕竟,您应该拥有表格格式的数据[列集&行]将其分配到水晶报表中.

2.
假设您有这样的列,
subjId,SubjNm,SubSubjId,SubSubjNm
在Crystal报表中,可以使用分组选项.
只需为SubjId添加一个组,并在其中添加另一个组SubSubjId
和拖放SubjNm&报表中的SubSubjNm字段分别在组或明细部分内.

祝您编码愉快!
:)
1. you need records (Source of data) it doesn''t matter you are using table or view or data is coming from sp or simple sql query or xml etc...
the thing is after all process you should have data in table format[ set of column(s) & row(s)] to assign it in crystal report.

2.
suppose you have columns like this,
subjId, SubjNm, SubSubjId, SubSubjNm
In crystal report, grouping option is available.
simply, add group for SubjId and another group inside it SubSubjId
and dragdrop SubjNm & SubSubjNm fields in report respectively inside group(s) or detail part.

Happy Coding!
:)