后台要调用DataBind()调用过了吗?不防把主要代码贴出来。

解决方案 »

  1.   

    1.aspx +++ CrystalreportView 一个Pageload:
    CrystalReportViewer.ReportSource=Server.MapPath("CrystalReport2.rpt")
    crystalreportviewer.databind
      

  2.   

    你要对报表进行数据绑定
    private void Page_Load(object sender, System.EventArgs e)
    {
    // 在此处放置用户代码以初始化页面
    CrystalReportViewer1.ReportSource=Server.MapPath("CrystalReport2.rpt");
    CrystalReportViewer1.DataBind();
    }
      

  3.   

    private void Page_Load(object sender, System.EventArgs e)
    {
    databind();
    }
      

  4.   

    www.aspcn.com中有详细的介绍
      

  5.   

    CrystalReportViewer.ReportSource=Server.MapPath("CrystalReport2.rpt")
    crystalreportviewer.databind两句中,把crystalreportviewer.databind这句去掉!