2

我正在编写一份显示调度数据的报告。此报告需要显示在指定日期范围内承诺日期的任何工作的数据。

我遇到的问题是如何最好地显示这些数据,我构建了一个包含标题信息(作业编号、描述、到期日期等)的数据集,它为每个作业返回一行。

然后,每个作业都有多个详细记录(行项目描述/详细信息、工作中心描述和详细信息)。每一个都可以返回几行。

我的问题是如何将这些详细数据与每个标题记录分组。希望每个作业有一个记录块这样的东西:

-- 标题数据集 Job Number , Job Desc, Date Ship By ... 等 -- 行项目描述数据集 --Work Center 数据集

下一个记录……

提前感谢您的帮助。

布赖恩

4

1 回答 1

2

If each of the records in your dataset have a field that they can be grouped by then this is actually pretty easy. You need to use the grouping feature of the table in SSRS. It's easiest to create a view that contains all the rows (both headers and details) logically and pass it to SSRS as one dataset.

Here is a recent walkthrough from Microsoft. You can change the version number to match your specific version since you didn't specify in the question. Group header fields can be formatted distintly to make them standout etc.

http://technet.microsoft.com/en-us/library/dd255263.aspx

If a field that you can group by isn't contained in the dataset in the report, i.e. it's a foreign relationship or something and you can't put them into a single view then you'll need to look into sub-reports. Based on the information provided however a simple row or column group should work just fine.

于 2013-01-23T22:24:19.267 回答