protected void Page_Load(object sender, EventArgs e) { PatientBO patientbo = new PatientBO(); if (!IsPostBack) { this.ReportViewer1.LocalReport.ReportPath = "PatientType/Patient.rdlc"; this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSet1", patientbo.GetAll())); this.ReportViewer1.LocalReport.Refresh(); } }