VB.Net 2005 水晶报表连接ACCESS数据库路径问题?请高手帮忙...
--------------------编程问答-------------------- 怎么没人回答问题啊???? --------------------编程问答-------------------- 大家都不会吗? --------------------编程问答-------------------- 其实xxDataTable你要怎么筛选就怎么筛选。然后设置: myreport.SetDataSource(xxDataTable)
然后再设置你的:CrystalReportViewer1.ReportSource = myreport
就可以了。
---------
设置路径问题,你就设置后,你就不要改变咯。不然就重新设置也不麻烦啊。
本人做过连接SQLServer的类型水晶报表,Access的还没有做过。
或者其他人可以帮到你。 --------------------编程问答-------------------- 给一些代码望有帮助:
Friend WithEvents crvBasic As CrystalDecisions.Windows.Forms.CrystalReportViewer
'======================================================
' Create a report document instance to hold the report
Dim rptExpensiveProducts As New ReportDocument()
' Load the report
rptExpensiveProducts.Load("..\TenMostExpensiveProducts.rpt")
' Set the report source for the crystal reports
' viewer to the report instance.
crvBasic.ReportSource = rptExpensiveProducts
' Zoom viewer to fit to the whole page so the user can see the report
crvBasic.Zoom(2)
补充:.NET技术 , VB.NET