SqlConnection con = new SqlConnection("Data Source=server;Initial Catalog=f_library;User ID=sa;Password=ahmed");con.Open();DataSet dataReport = new DataSet();SqlDataAdapter myDataAdapter = new SqlDataAdapter();myDataAdapter.Fill(dataReport, "emp");myDataReport myDataReport = new myDataReport();myDataReport.SetDataSource(dataReport);crystalReportViewer1.ReportSource = myDataReport;i used this code to retrive crystalreport data to crystalreportvieweri have this errorThe type or namespace name ''myDataReport''[edit]Code block added, "Treat my content as plain text..." option disabled - OriginalGriff[/edit] 解决方案 这篇关于水晶报表未检索任何数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
09-15 19:01