vb.net.my コードで 1 つのレポートを作成したいです。
da = New SqlDataAdapter("select biography FROM [gholeha].[dbo].[tbl_charachter] where name=N'آیت الله بهجت' ", con)
da.Fill(ds)
Dim rep As ReportDataSource
rep = New ReportDataSource("dts", ds.Tables(0))
ReportViewer1.LocalReport.DataSources.Clear()
Me.ReportViewer1.LocalReport.DataSources.Add(rep)
ReportViewer1.LocalReport.Refresh()
Me.ReportViewer1.RefreshReport()
しかし、デバッグしてレポートを表示せず、エラーがあります:
レポート定義のソースが指定されていません。