Click here to Skip to main content
15,896,111 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Sir/Mam

Below is piece of code used to bind the rdlc report

C#
pGetVisitorTableAdapter objVisitor = new pGetVisitorTableAdapter();
              dsMiscReport.pGetVisitorDataTable dt = new dsMiscReport.pGetVisitorDataTable();

              objVisitor.Fill(dt, ddlCenterC.SelectedItem.Text, txtFrom.Text, txtTo.Text);
              ReportDataSource rds = new ReportDataSource();
              rds.Name = "dsVisitor";
              rds.Value = dt;

              rvVisitorInfo.LocalReport.DataSources.Clear();
              rvVisitorInfo.LocalReport.ReportPath = Server.MapPath("~/Report/rptVisitorInfo.rdlc");
              rvVisitorInfo.LocalReport.DataSources.Add(rds);
              rvVisitorInfo.LocalReport.Refresh();

when I debug the code the data is fetched from the above Table adapter, where I can see it. But when code is executed i am not able to see the data which is fetched on the report viewer help me on it. The same above code is working on the other form.
Posted
Updated 17-Aug-14 1:16am
v2

1 solution

hi
Please check your Dataset and path of rdlc report.
 
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