问题
i want to add on a report (*.rldc)
a DataSource
that is an Sql Compact 4.0
, but it doesn't give me the option to add it, but i can add on Server Explorer an Sql Compact 4.0 connection.
What do i need to accomplish this?
回答1:
You can use DataTable / DataSet to Bind Records from you SQL CE to your Local report.
Just Click Add New item then choose DataSet and select you sqlce database on your server explorer.
This may help you to start of:
Building Reports from Object Collection using ReportViewer
ReportViewer
Regards
回答2:
VS 2010 needs a patch to get support for editing SQL CE 4.0 databases. you can get it through Web PI.
来源:https://stackoverflow.com/questions/8425551/cant-add-sql-compact-4-0-as-datasource-on-rdlc