16,554
社区成员
发帖
与我相关
我的任务
分享
Dim myreport = New rep_BookTypes
Private Sub CrystalReportViewer1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CrystalReportViewer1.Load
CrystalReportViewer1.ReportSource = myreport '加载报表
End Sub
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)