i use Solution 2
and this source for report
string connectionString = @"Data Source=C:\data\Shop1.sdf";
SqlCeConnection connection = new SqlCeConnection(connectionString);
connection.Open();
string query = "SELECT * FROM Customers";
SqlCeDataAdapter dataAdapter = new SqlCeDataAdapter(query, connection);
dataAdapter.Fill(shop1DataSet1);
try
{
reportGenerator1.Prepare();
using (NineRays.Reporting.View.PreviewForm previewForm = new NineRays.Reporting.View.PreviewForm(reportGenerator1))
{
previewForm.WindowState = FormWindowState.Maximized;
previewForm.ShowDialog(this);
}
}
catch (Exception ee)
{
MessageBox.Show(ee.Message, "Report Sharp-Shooter", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
then run program and saw this:
http://freepicupload.com/view.php?filename=232p1.png[
^]
then click to Refresh report and saw this
http://freepicupload.com/view.php?filename=679p2.png[
^]
why report empty?!!2