简体   繁体   English

在ReportViewer .Net 4.0中使用Sql Server Compact Edition数据库文件

[英]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.

相关问题 如何使用应用程序部署.Net Compact Framework和SQL Server Compact Edition - How to deploy the .Net Compact Framework and SQL Server Compact Edition with the Application SQL Server Compact Edition和ADO.NET提供程序文件版本不匹配异常 - SQL Server Compact Edition and ADO.NET Provider File Version Mismatch Exception SQL Server Compact Edition无服务器吗? - Is SQL Server Compact Edition Serverless? 使用linq从本地SQL Server Compact Edition数据库中选择 - Select from local SQL Server Compact Edition database using linq 无法提交对SQL Server Compact Edition数据库的更改 - Can't commit changes to SQL Server Compact Edition database SQL Server Compact Edition 4 - AccessViolationException - SQL Server Compact Edition 4 - AccessViolationException 您正在尝试访问SQL Server Compact Edition数据库的旧版本 - You are trying to access an older version of a SQL Server Compact Edition database 在Entity Framework和SQL Server Compact Edition数据库中获取错误 - get Error in Entity Framework and SQL Server Compact edition database SQL Server Compact 3.5版数据库访问被拒绝 - SQL Server Compact edition 3.5 database acess is denied 如何在Sql Server Compact Edition中使用LIKE参数 - How to use parameter with LIKE in Sql Server Compact Edition
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM