Error While Using Multiple Datasets in RDLC Report

冷暖自知 提交于 2019-12-20 02:29:51

问题



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.

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....


回答1:


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

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


来源:https://stackoverflow.com/questions/8936389/error-while-using-multiple-datasets-in-rdlc-report

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!