想从数据库绑定数据,做个图形显示,比如饼状图什么的,看了看水晶报表的使用介绍,需要客户端配有数据库客户端,直接连接数据库,请教大家,能不能通过服务器返回dataset之类的数据集实体,然后绑定到客户端的水晶报表控件?
     谢谢!

解决方案 »

  1.   

    客户端要数据库的是拉模式,推模式不需要,绑定数据和DATEGRID之类差不多
      

  2.   

     SqlDataReader dr = SqlHelper.ExecuteReader(SqlHelper.ConnectionStringProfile, CommandType.StoredProcedure, "Grp_SMSReportGenerater", parms);        DataTable dt = ConvertDataReaderToDataTable(dr);        Grp_ReportSource.ReportDocument.Load(Server.MapPath("..\\Grp_SMSCrystalReport.rpt"));        Grp_ReportSource.ReportDocument.SetDataSource(dt);
              Grp_ReportSource.DataBind();        CrystalReportViewer1.ReportSource = Grp_ReportSource;
            CrystalReportViewer1.DataBind();        CrystalReportViewer1.Visible = true;        dr.Close();