我正在使用 VB.NET 和 MySql 并创建了一个报告,该报告在开发人员机器上没有任何错误。当我安装它并在另一台机器上运行时,它会出现以下错误。我已经包含了 Microsoft.ReportViewer.Common.dll、Microsoft.ReportViewer.WinForms.dll

这是我加载报告的代码
Private Sub frmRptCustomerBal_Load(sender As Object, e As EventArgs) 处理 MyBase.Load
将 cn 调暗为新的 dbConnection
cn.connect()
rptCustomerBalTableAdapter.Connection = cn.conn
ReportViewer1.ProcessingMode = Microsoft.Reporting.WinForms.ProcessingMode.Local
ReportViewer1.LocalReport.ReportPath = "rptCustomerBal.rdlc"
Me.rptCustomerBalTableAdapter.Fill(Me.rptCustomerBal._rptCustomerBal)
Me.ReportViewer1.RefreshReport()
cn.close_conn()
结束子