Quantcast
Channel: Visual Studio Report Controls Forum
Viewing all articles
Browse latest Browse all 519

Pass null value in report viewer

$
0
0

Hi Everyone,
I used RDLC report for student details. I In RDLC report the left side values is constant like student Name,Fathername, DOB etc. When i passed empty datatable the report shown only left side values. If i give any input for particular student then show only that student details also. I got the student details report when i give the input but when i passed empty datatable the report not shown. I used 2010.... How to do Just tell the Solution.
This is my coding
cmd = new SqlCommand("select * from student where 1=2", cn);
SqlDataAdapter da = new SqlDataAdapter(cmd);
//DataTable dt = new DataTable();
DataSet ds = new DataSet();
da.Fill(ds);
//da.Fill(dt);
ReportViewer1.LocalReport.DataSources.Clear();
ReportViewer1.Reset();
ReportDataSource RDS = new ReportDataSource("LawceDataSet_student", ds.Tables[0]);
ReportViewer1.LocalReport.DataSources.Add(RDS); ReportViewer1.LocalReport.ReportPath = Server.MapPath(RPath + "TCReport.rdlc").Replace("\\", "/");
ReportViewer1.ProcessingMode = ProcessingMode.Remote;
//Bodge due Bug in reportViewer

ReportViewer1.ProcessingMode = ProcessingMode.Local;

ReportViewer1.LocalReport.Refresh();
ReportViewer1.Visible = true;
That command not suitable so the datatable is empty, even i need to show the report only left values like 
Student Name : 
Father Name :
DOB :
like that i need to show... How to do...

Thanks in Advanced


Viewing all articles
Browse latest Browse all 519


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>