RDLC问题 [英] RDLC question

查看:74
本文介绍了RDLC问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对Visual Studio中的RDLC有疑问.我有一个显示数据的列表.现在,在该列表中,我想创建另一个列表,该列表使用第一个列表中的变量(外键)来获取第二个列表中的数据(主键).我该如何链接这两个,这样才能正常工作?



我有一个RDLC文件.在此文件中,我想显示数据.我有一个列表(列表A),它显示数据源中的数据,该数据源从列1中获取数据.在列表AI中,我想要另一个列表(列表B)中的数据源,该数据源中的数据来自列2.列表的数据源,可以正常工作.我在列表B中放置了一个文本框.我想获取数据,所以我使用一个表达式.但是我无法从第二个数据源(仅第一个)获取数据.希望更好.

I have a question about the RDLC within Visual Studio. I have a list where I show data. Now within that list I want to make another list that uses a variable from the first list (a foreign key) to get data in the second list (primary key). How can I link these two so it will work?



I have a RDLC file. In this file I want to show data. I have a list (List A) which shows data from datasource, which gets data from Column 1. Within List A I want to have another list (List B) which shows data from a datasource that gets data from Column 2. I have added a Datasource to the List, that works fine. I put a textbox within List B. That works. I want to get data so I use an expression. But I cant get data from the second datasource, only the first. Hope this is better.

推荐答案

据我了解您的问题:
您需要有一个列表调用 list1 ,它将具有主列或主信息.在list1中,您还有另一个列表调用 list2 .
list2 将显示 list1 中的主列的详细信息.

为此,我遵循以下步骤:
1.在报表中添加了一个列表,并在其中删除了主字段.
2. list1 中添加了另一个列表,并从数据源中删除了明细字段.
3.现在,我需要在list1中创建一个.因此,我右键单击列表,然后从中选择属性菜单.从那里弹出一个窗口,然后单击编辑详细信息组..." .在窗口中,我创建了一个表达式,该表达式不过是主字段名称.
4.之后,我运行了报表,并在两个列表中获得了主明细关系.

希望这能回答您的问题.
As far as I understood your question:
You need to have a list call list1 which will be having master column or master information. Within list1 you have another list call list2.
list2 will show up detail information of the master column which is in list1.

To do this I followed the following steps:
1. Added a list in report and droped the master field in it.
2. Added another list within list1 and droped the detail fields from datasource.
3. Now I needed to create a group in list1. So I right click on the list and selected the properties menu from it. From there a window poped up and I clicked on "Edit details group...". From the window I created an expression which was nothing but the master field name.
4. After that I ran the report and I got the master detail relation in two lists.

Hope this answer your question.


不完全是.我没有来自第一个数据源的数据,却有第二个数据源.

List1使用数据源A
List2使用数据源B

List2位于List1内.

当我在List2中放置一个文本框并希望从数据源B获取数据时,我只能从数据源A获取数据,因为List2位于List1内(我认为).

很清楚,我可以输入:P
Not exactly. I don''t data from the first datasource, I have a second datasource.

List1 uses Datasource A
List2 uses Datasource B

List2 lies within List1.

When I put a textbox in List2 and want to get data from Datasource B I can only get data from Datasource A since List2 lies within List1 (I think).

Thats a clear as I can type it :P


这篇关于RDLC问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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