怎么将dataset的数据加载到CrystalReportView呢?是不是
MyId=me.DataGrid1.Item(hti.row,0) '从DataGrid1的点击中获得id号
Dim MyDS As New Dataset1()
Dim MyTable = "Customer"
MyDA.Fill(MyDS, MyTable)
MyCommand.CommandText = "Select * from " & MyTable & " Where id=" & MyId
MyDA.SelectCommand = MyCommand
me.CrystalReportView1.SetDataSource(MyDS)
我试过,还是不行,求代码!
[此贴子已经被作者于2007-9-29 21:39:56编辑过]