C# 报表RDLC,报表数据源现在缺失

C# 报表RDLC,报表数据源现在缺失,c#,.net,asp.net,rdlc,report,C#,.net,Asp.net,Rdlc,Report,我必须修改我们系统生成的一个报告。 这些报告是使用RDLC文件生成的 我添加了必要的后端,以获取新字段“EmployeeName”所需的信息 但是当我在我的rdlc文件中调用 “=字段!EmployeeName.Value” 它会导致一个错误: Error 1 The Value expression for the textbox ‘textbox14’ refers to the field ‘EmployeeName’. Report item expressions can on

我必须修改我们系统生成的一个报告。 这些报告是使用RDLC文件生成的

我添加了必要的后端,以获取新字段“EmployeeName”所需的信息

但是当我在我的rdlc文件中调用

“=字段!EmployeeName.Value”

它会导致一个错误:

Error   1   The Value expression for the textbox ‘textbox14’ refers to the field ‘EmployeeName’. Report item expressions can only refer to fields within the current data set scope or, if inside an aggregate, the specified data set scope.
我尝试删除数据源并为RDLC重新添加它,但它不再出现在数据源列表中

以前有人有过这个问题吗

  • 创建或修改数据集文件something.xsd,使其与新定义匹配
  • 使用此新定义重新创建数据集
  • 你完了。将DataReader重新绑定到报表时,不会出现运行时错误

    Error   1   The Value expression for the textbox ‘textbox14’ refers to the field ‘EmployeeName’. Report item expressions can only refer to fields within the current data set scope or, if inside an aggregate, the specified data set scope.