[已解决]尚未为数据源提供数据源实例。 [英] [Solved]A data source instance has not been supplied for the data source.

查看:658
本文介绍了[已解决]尚未为数据源提供数据源实例。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我经常遇到这个错误。

没有为数据源提供数据源实例



请告知原因以及如何解决。



我用Google搜索但是没有得到任何可靠的方法修理它。



谢谢

Furqan



更新自OP:

OP自己解决了这个问题,并将解决方案作为答案发布。

Hi,
I have been coming across this error very very often.
"A data source instance has not been supplied for the data source"

Please advise why it comes and how to fix it.

I googled it but did not get any solid method to fix it.

Thanks
Furqan

Update from OP:
OP resolved the issue himself and posted the resolution as answer.

推荐答案

我刚刚找到了修复方法它。



你的ReportViwer带有报告。

点击上面的三角形并点击

选择数据源。在这里你可以找到数据集中的绑定源。

只需选择你的绑定源就可以了。
I just found the way to fix it.

Got o your ReportViwer that carries the report.
Click on the triangle above and click
Choose Data Sources. Here you will find the binding sources in in your data sets.
Just choose your binding source and you are done.


我有同样的问题,有3个报告中的数据源,而我只使用1.



看起来我通过从多个数据集引用相同的数据表来引起这种情况。



我在表单的设计器页面中删除了对数据源的所有额外引用。



但是当我点击报告时,选择所有数据源仍然存在三个。



一个有效的解决方案是单击报告,并将所有数据源实例设置为正确的数据集数据表。



但解决问题的正确解决办法是用记事本编辑report.rdlc文件。



你会在数据集下找到每个数据源的一个部分。



小心删除你不想要的数据集部分,问题解决方案ved ..



问候



John van Eijck
I had the same problem, with 3 datasources in the report while i only used 1.

It looks like i caused this by referencing the same datatable, from multiple datasets.

I removed all extra references to datasources in the form's designer page.

But when i click on the report, to select the datasource all three where still there.

One solution that worked, was to click on the report, and set all datasource instances to the correct dataset-datatable.

But the correct solution that solved the problem, was to edit the report.rdlc file with notepad.

There you will find under "datasets", a section for each datasource.

Carefully delete the sections for the datasets you dont want, problem solved..

Regards

John van Eijck


我也有这个错误没有为数据源提供数据源实例

我有两个绑定的绑定源。如何删除其中一个?
I also have this error "A data source instance has not been supplied for the data source"
I have two binding source to bind to. How do I remove one of them?


这篇关于[已解决]尚未为数据源提供数据源实例。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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