救命!!!!!!!!!
Dim datset As New DataSet
Dim reportdoc As New CrystalReport4
Dim da1 As New SqlClient.SqlDataAdapter
Dim da2 As New SqlClient.SqlDataAdapter
da1 = New SqlClient.SqlDataAdapter( "SELECT * from orders ", "data source=hs;database=northwind;uid=sa; ")
da1.Fill(datset, "order ")
da2 = New SqlClient.SqlDataAdapter( "SELECT * from [Order Details] ", "data source=hs;database=northwind;uid=sa; ")
da2.Fill(datset, "orderdetail ")
reportdoc.SetDataSource(datset)
datset.Tables(0).WriteXml( "c:\aadfasd.xml ")
baobiao.CrystalReportViewer1.ReportSource = reportdoc
baobiao.CrystalReportViewer1.RefreshReport()
'datset.WriteXml( "c:\aadfasd.xml ")
table = New DataTable
datset = New DataSet
baobiao.ShowDialog()
2005.net中中从报表按照以上方法竟然报表中无数据显示
我是严格按照push方法做的!!!
我也添加了dataset 数据集。
报表是用向导做的。。。
请高手指点!!!!
------解决方案--------------------da1.fill(datset, "这个名称要和你的创建的 "dataset1.xsd "中的一致 ")
da2.fill(datset, "这个名称要和你的创建的 "dataset1.xsd "中的一致 ")
试试就oK了!!!!