我正在使用VB.NET和MySql并创建了一个报告,该报告在开发人员计算机上没有任何错误。当我安装它并在另一台机器上运行时,它会出现以下错误。我已经包含Microsoft.ReportViewer.Common.dll,Microsoft.ReportViewer.WinForms.dll
这是我加载报告的代码
Private Sub frmRptCustomerBal_Load(sender As Object, e As EventArgs) Handles MyBase.Load Dim cn As New 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() End Sub