[英]Use Sql Server Compact Edition Database File in ReportViewer .Net 4.0
I have finished a Windows Forms application using Sql Server Compact Edition 4, and .Net Framework 4.0. 我已经使用Sql Server Compact Edition 4和.Net Framework 4.0完成了Windows Forms应用程序。 I want to use the database file to create a report in ReportViewer, but I don't know how to do that, when I try to create a new Datasource in the ReportViewer wizard I have a successful connection, but when I press next, the database file isn't recognized, it says
Error getting database information
and This selector doesn't accept the specified type
. 我想使用数据库文件在ReportViewer中创建报告,但是我不知道该怎么做,当我尝试在ReportViewer向导中创建新的数据源时,连接成功,但是当我按下一步时,无法识别数据库文件,它说
Error getting database information
并且This selector doesn't accept the specified type
。 I have been searching a lot but I just find code fragments that are marked as solution. 我已经进行了很多搜索,但是我只是找到了标记为解决方案的代码片段。
You can create a DataSet in code, and use that with the Report Viewer. 您可以在代码中创建一个数据集,并将其与报表查看器一起使用。 For a full discussion and link to solution, see https://github.com/ErikEJ/SqlCeToolbox/issues/39
有关完整的讨论和解决方案的链接,请参见https://github.com/ErikEJ/SqlCeToolbox/issues/39
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.