数据绑定 想从数据库绑定数据,做个图形显示,比如饼状图什么的,看了看水晶报表的使用介绍,需要客户端配有数据库客户端,直接连接数据库,请教大家,能不能通过服务器返回dataset之类的数据集实体,然后绑定到客户端的水晶报表控件? 谢谢! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 客户端要数据库的是拉模式,推模式不需要,绑定数据和DATEGRID之类差不多 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(); GroupBox 加两个RadioButton 报错 对象数组的内存分配问题 frame的问题 [WinForm]遍历checkbox控件出错。(附代码) 事件调用的一些小问题 调试时出现线程间操作无效的问题 闲着没事问个问题! 有一队伍长100米,匀速前进,传令兵以匀速从队首运动到队尾然后返回队首,其间队伍前进了100米,问传令兵运动的距离。 高分.急啊.高手求教:怎么从我的网页怎么进入我在www.163.com 的通行证.不要手工操作.直接点击.就可以连接. 怎样取得一个文本框的位置,在web上用c# 好郁闷啊 用js能方便解决的问题 可惜我不会js 帮忙啊
Grp_ReportSource.DataBind(); CrystalReportViewer1.ReportSource = Grp_ReportSource;
CrystalReportViewer1.DataBind(); CrystalReportViewer1.Visible = true; dr.Close();