日期:2014-05-17 浏览次数:21009 次
protected void Page_Load(object sender, EventArgs e)
{
BLL.YUser bllUser = new BLL.YUser();
this.ReportViewer1.LocalReport.ReportPath = "t1\\Report\\Report1.rdlc";
this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("Test", bllUser.GetAllList().Tables[0]));
this.ReportViewer1.LocalReport.Refresh();
}
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<rsweb:ReportViewer ID="ReportViewer1" runat="server">
</rsweb:ReportViewer>
</form>