分组不会在主详细信息 rdlc 报告格式中创建 [英] Grouping does not create in master details rdlc report formatting

查看:35
本文介绍了分组不会在主详细信息 rdlc 报告格式中创建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 Microsoft 报表设计器创建 rdlc 报表.由于我的数据的复杂性(下面给出的只是一个例子)我不在数据库端使用视图.因此,我必须为我的报告设计使用单独的表(数据源).现在,从下面的示例中可以看出,我有一个报告页面,我想显示每个人的个人、家庭和工作信息.

I want to create a rdlc report using Microsoft Report Designer. Due to complexity of my data (the given below is just an example) I do not use View on Database side. So, I have to use seperate tables (data sources) for my report design. Now, as it can be seen the example below I have one report page and I want to show PERSONAL, FAMILY and JOB INFO for each person.

  • 个人信息部分有文本框.数据来自table_Personal,

  • There are Textboxes on PERSONAL INFO section. The data is come from table_Personal,

家庭信息部分有一个表格.数据来自Table_Famiy,

There are a Table on FAMILY INFO section. The data is come from Table_Famiy,

JOB INFO 部分有一个表格.数据来自Table_Job并且所有三个表都包含 Person_Id 列.

There are a Table on JOB INFO section. The data is come from Table_Job and all the three tables contain Person_Id column.

个人信息
姓名:克里斯托夫
姓氏:罗宾年龄:45

PERSONAL INFO
Name : Christof
Surname : Robin Age : 45

家庭信息
否----- 姓名----- 年龄----- 出生地
1------ 莎拉----- 12------ 伦敦
2------ 阿尔伯特----- 16------ 曼彻斯特
3------ 大卫----- 23------ 纽约

FAMILY INFO
No----- Name----- Age----- Birt Place
1------ Sarah----- 12------ London
2------ Albert----- 16------ Manchester
3------ David----- 23------ NY

工作信息
否------ 公司----- 开始年份
1------- Xyz----------- 2005
2------- T Mobile------- 1999
3------- Day Inn------- 1993

JOB INFO
No------ Company----- Start Year
1------- Xyz----------- 2005
2------- T Mobile------- 1999
3------- Day Inn------- 1993

我的问题是;

1) 我不想使用子报表,也不想通过使用视图在数据库端合并这些表(我已经搜索过,但对于 3 个或更多表,我认为这是不可能的).那么,是否可以通过对项目(表、列表等)进行分组而不使用 rdlc 上的子报告来创建如上所述的主从报告?如果是这样,你能解释一下吗?

1) I do not want to use Subreport and do not combine these tables in db side by using view (I have searchhed, but for 3 or more tables it is impossible I think). So, is it possible to create a master-detail report like above by grouping items (table, list, etc.) and without using subreport on rdlc? If so, could you explain a little bit please?

2) 我试图创建这样的报告;我使用了一个列表并插入了上面的所有文本框和三个表格到这个列表.我将所有三个表都指定为报表数据源.我做 List.DataSetName = Table_Personal 和 List.Grouping 设置选择 Group on :Person_Id 和其他一些组合.但是,不幸的是我没有设法创建像上面这样的报告组.

2) I have tried to create such a kind of report like that; I use a List and inserted all the textboxes and three tables above to this list. I assign all the three tables as Report Data Sources. I make List.DataSetName = Table_Personal and List.Grouping settings select Group on : Person_Id and some other combination. But, unfortunately I have not managed to create such a kind of report group like above.

如果你有一些示例 rdlc 页面源,你能帮我提供一些建议吗?...沙尔

Could you help me please by giving some advice and if you have some sample rdlc page source please? ...Shohel

推荐答案

是的,这是可能的,但我已经在 6 个月前完成了,所以我现在没有任何示例代码.

Yes it is possible but I'd done it like 6 months ago, so I don't have any sample code right now.

我做过很多类似的案例.一个这样的情况是有一个学生列表,每个学生都有一个分数列表、一个成就列表等.

I have done a lot of similar cases. One such case is there are a list of students and each student has a list of marks, a list of achievements, etc.

如果我没记错的话,我使用了一个存储过程来获取所有学生的所有详细信息.一个数据集.并将它们全部放在一个 tablix 中并将它们分组.

If I remember correctly I used one storedprocedure to get all the details of all the students. One dataset. And put 'em all in one tablix and grouped 'em.

子列表(如标记列表)本身是单独的 Tablix,并插入到主 Tablix 的文本框中.

The sub-lists (like the list of marks) are separate tablixes themselves and are inserted in textboxes of the main tablix.

希望有帮助!:)

这篇关于分组不会在主详细信息 rdlc 报告格式中创建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆