1
我有一個錯誤如何解決此事先感謝:) datasource1顯示重載解析失敗,因爲沒有可訪問的'新'是更具體的有參數。報告查看器問題
ReportViewer1.Visible = True
Dim thisDataSet As New DataSet()
Dim adapCategory As DataSetParameterTableAdapters.mCategoryTableAdapter = New DataSetParameterTableAdapters.mCategoryTableAdapter
Dim ds As DataSetParameter.mCategoryDataTable = New DataSetParameter.mCategoryDataTable()
adapCategory.Fill(ds, Me.DropDownList1.SelectedValue)
Dim datasource1 As New ReportDataSource("DataSetParameter_mCategory", ds)
ReportViewer1.LocalReport.DataSources.Clear()
ReportViewer1.LocalReport.DataSources.Add(datasource1)
ReportViewer1.LocalReport.Refresh()