With ReportViewer1.LocalReport
.DataSources.Clear()
.ReportEmbeddedResource = "Report2.rdlc"
.ReportPath = "D:\Project\Incentive\Incentive\Report2.rdlc"
.DataSources.Add(New ReportDataSource("DataSet1", dt_tempinc))
.SetParameters(New ReportParameter("param1", TextBox3.Text))
.Refresh()
End With
With ReportViewer1
.RefreshReport()
.Refresh()
End With
这个编码是我使用但在对象错误消息视图中发生错误。如何纠正这个问题。谢谢你的进步。