错误而在RDLC报告中使用多个数据集多个、而在、错误、报告

2023-09-06 05:10:55 作者:烈酒与孤独

 我创建RDLC报告与两个数据集。此前我使用一个数据集,它工作正常,但是当我添加第二个数据集就开始给我下面的错误的文本框。

I am creating RDLC report with two datasets. Earlier i was using one dataset and it was working fine,but when i added second dataset it started giving me following error for textboxes.

错误值1前pression文本框Textbox10指的是外地HospitalAddress。报告项目EX pressions只能引用领域当前的数据范围内,或者,如果聚合内,指定的数据集的范围。

Error 1 The Value expression for the text box ‘Textbox10’ refers to the field ‘HospitalAddress’. Report item expressions can only refer to fields within the current dataset scope or, if inside an aggregate, the specified dataset scope.

这是怎么回事?请帮助....

Why is this happening? Please help....

推荐答案

您需要指定到现在你的前pressions使用的数据集。下面的示例EX pression语法:

You need to specify which dataset to use in your expressions now. Sample expression syntax below:

=First(Fields!<field name>.Value, "<dataset name>")