我尝试在我的报告查看器中查看报告,但它什么也没显示
我的报告查看器的加载功能如下:
if(!IsPostBack)
{
ReportViewer1.ProcessingMode = ProcessingMode.Local;
ReportViewer1.LocalReport.ReportPath = "Reports/MainReport.rdlc";
DataTable orderDt = controller.SelectFullOrderDetailsInfo(orderID);
ReportDataSource rptds = new ReportDataSource("OrderInfo", orderDt);
ReportViewer1.LocalReport.DataSources.Clear();
ReportViewer1.LocalReport.DataSources.Add(rptds);
ReportViewer1.LocalReport.Refresh();
ReportViewer1.DataBind();
}
报告查看器页面只是空着,没有显示任何东西!我错过了什么