rdlc报告错误-在进行lkocal处理期间 [英] rdlc Report Error - during lkocal processing

查看:117
本文介绍了rdlc报告错误-在进行lkocal处理期间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在vb.net中做一个简单的报告

我已完成以下
我有一个带有报表查看器的表单(我从中删除了所有代码-两行)

我有一个带有文本框"Hello world"的报告
我从启动表单中按如下方式调用该报告

Hi I am trying to make a simple report in vb.net

I have done the following
I have a form with a report viewer (I have removed all the code from it - two lines)

I have a report which has a text box "Hello world"
I call the report as follows from my startup form

dim objFrm as new frmViewer
objfrm.ReportViewer.localreport.reportpath= "report1.rdlc"
objfrm.ReportViewer.refreshreport()
objfrm.showdialog



该报告工作正常.

然后,我向报表中添加一个表(tablix),并将其绑定到现有数据源.我检查了该数据源是否正常工作(并且已经删除并读取了几次)
我在表[Client]中添加了一个字段-该字段显示在下拉选择框中

现在,当我运行报告时,出现以下错误:
尚未为数据源"dataset1"提供数据源实例

不管我做什么,我都无法使报表立即运行.

任何帮助将不胜感激

问候
Ants



The report works fine.

I then add a table (tablix) to the report and bind it to an existing datasource. I have checked that this data source works (and I have deleted and readded it a couple of times)
I have added one field to the table [Client] - this appears in the drop down selection box

Now when I run the report I get the following error:
A data source instance has not been supplied for the data source "dataset1"

No matter what I do I can not get the report to now run.

Any help would be much appreciated

Regards
Ants

推荐答案

如果您希望手动设置数据源,请查看我对本文的回答
http://www.codeproject.com/Answers/128840/Using-data-in-DataTables-in-Microsoft-Report-Viewe.aspx#answer1

我已经在那解释了.
我还制作了一个小示例项目,您可以在此处下载
http://www.yourfilelink.com/get.php?fid=598973

只需记住在报表查看器控件中选择报表后,删除设计器生成的数据绑定(数据表和绑定源)
If you wish to manually set the data source, check my answer to this post
http://www.codeproject.com/Answers/128840/Using-data-in-DataTables-in-Microsoft-Report-Viewe.aspx#answer1

I''ve explained it there.
I''ve also made a small example project which you can download here
http://www.yourfilelink.com/get.php?fid=598973

Just remember to remove the designer generated data-bindings (data table & binding source) after you pick a report in the report viewer control


这篇关于rdlc报告错误-在进行lkocal处理期间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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