Answered A data source instance has not been supplied for the data source 'DataSet1'

Socarsky

Well-known member
Joined
Dec 27, 2012
Messages
173
Location
Jakarta/Indonesia
Programming Experience
Beginner
I am in a trouble with this thread's title that I could not solved yet even I spent a few hours. Btw, the report's build action is Embedded Resource.
1_b.jpg
1_a.jpg
 
Last edited:
You are specifying that the path of the report is an RDLC file in the applciation's current directory, so the fact that it's actually a resource is a problem. I think that you'll want to change that Build Action to Content and deploy the RDLC file along with the EXE. I've never used a local report but that seems to be logical.
 
Actually the main reason related lack of a Datatable source. Thanks for helping

VB.NET:
'Dim ds As New DataSet1
Dim dt As New DataTable
Dim rds As New ReportDataSource("DataSet1", dt)
 
Actually the main reason related lack of a Datatable source. Thanks for helping

VB.NET:
'Dim ds As New DataSet1
Dim dt As New DataTable
Dim rds As New ReportDataSource("DataSet1", dt)

That seems odd though, as I can see you adding a data source in the code you captured in the first post.
 
The reason is being two DataSet1 object one of them is in the PrepareTheReport Sub, the other generated by GUI of VS2012.. then occuring a confusion when the Sub calls.
 
Back
Top