简体   繁体   中英

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM