Click here to Skip to main content
15,867,834 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
when i am generating rdlc report in asp.net(vs 2010) using vb am getting this error "A data source instance has not been supplied for the data source 'Ds2'. "...I have tried many steps..Please give me a solution
Posted
Comments
[no name] 30-Oct-14 7:36am    
You must be using the report viewer. Can you paste the code how are you binding the report ?
shijuse 31-Oct-14 10:54am    
can u share the code ?
shadshad 2-Nov-14 1:05am    
code which is used for binding
-----
Dim dttable As DataTable = obj.GetList("sp_W_TTCT_Invoice_mast_Report_mast '" + Request("inv_id") + "' ")
Dim dtdet As DataTable = obj.GetList("sp_W_TTCT_Invoice_mast_Report_det '" + Request("inv_id") + "'")
ReportViewer1.LocalReport.DataSources.Add(New Microsoft.Reporting.WebForms.ReportDataSource("ds1", dttable))
ReportViewer1.LocalReport.DataSources.Add(New Microsoft.Reporting.WebForms.ReportDataSource("ds2", dtdet))
ReportViewer1.LocalReport.ReportPath = Server.MapPath("/Report/RepInvoice.rdlc")
ReportViewer1.LocalReport.Refresh()

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900