在线等求解:水晶报表问题?为什么我的不显示!
先建了一个Mydataset
Mydataset my_DS = new Mydataset ();
SqlConnection my_sqlcnn = new SqlConnection( "连接字串 " );
my_sqlcnn.Open();
string StrSQL = "查询1 ";
SqlDataAdapter my_DA = new SqlDataAdapter( StrSQL,my_sqlcnn );
my_DA.Fill( my_DS, "查询1 " );
StrSQL = "查询2“
SqlDataAdapter my_DA1 = new SqlDataAdapter(StrSQL,my_sqlcnn);
my_DA.Fill(my_DS, "查询2 ");
StrSQL = "查询3 ";
SqlDataAdapter my_DA2 = new SqlDataAdapter( StrSQL,my_sqlcnn );
my_DA.Fill( my_DS, "查询3 " );
CrystalReportDataClientPart my_Report = new CrystalReportDataClientPart();
my_Report.SetDataSource(my_DS);
crystalReportViewer1.ReportSource = my_Report;
为什么不显示数据和图表!!!!!
------解决方案--------------------不懂 帮顶
------解决方案--------------------不要用数据集,用表绑定!
------解决方案--------------------my_Report.SetDataSource(my_DS);
my_Report.Refresh();