Crystal Report中及其郁闷的问题 忘记补充说明,我现在用的Crystal Report是9.2版本,没有打任何补丁。Vs.net 2002,2000 Server的操作系统 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 是你的表名不一致,你不要用Tables[0],直接用数据集,例子如下:CrpRepairRpt crp = new CrpRepairRpt(); System.Data.DataSet dt = new System.Data.DataSet(); System.Data.SqlClient.SqlConnection conn = new System.Data.SqlClient.SqlConnection("server=localhost;database =hos;uid=sa;pwd="); conn.Open(); System.Data.SqlClient.SqlDataAdapter da = new System.Data.SqlClient.SqlDataAdapter("select * from temp",conn); da.Fill(dt,"temp"); crp.SetDataSource(dt); this.crystalReportViewer1.ReportSource = crp; 最后总结该帖,原因应该是Crystal Report9.2的引擎在Vs2002中不好用。不过还是谢谢楼上的热心参入。 默认情况下,CrystalReportViewer 显示水晶报表里保存的数据,使用 CrystalReportViewer.RefreshReport 方法刷新显示。CrystalReportViewer.RefreshReport 方法该方法将刷新查看器中当前显示的报表的数据。将提示您输入报表需要的所有参数或登录信息。 socket连接 客户端第一次连接不上 第二次可以连接上 C/S结构的客户端同步问题 如何得知DropDownList的值被改变了 C#remoting 消息接收器的定制问题,急!!! 在一个页面里,左边是树型控件,右边是显示内容页面。 [急求]怎么从MFC写的Server向C#写的Client发信号 请问怎样让所有的新打开的窗口都在我的web Browser控件中打开阿? 关于编程访问Outlook Girdview里两个数据库表的问题 socket的问题 一个.net学习资料收藏管理软件![C#语言做的!] 如何写自己需要的事件!
直接用数据集,例子如下:
CrpRepairRpt crp = new CrpRepairRpt();
System.Data.DataSet dt = new System.Data.DataSet();
System.Data.SqlClient.SqlConnection conn = new System.Data.SqlClient.SqlConnection("server=localhost;database =hos;uid=sa;pwd=");
conn.Open();
System.Data.SqlClient.SqlDataAdapter da = new System.Data.SqlClient.SqlDataAdapter("select * from temp",conn);
da.Fill(dt,"temp");
crp.SetDataSource(dt);
this.crystalReportViewer1.ReportSource = crp;
不过还是谢谢楼上的热心参入。
CrystalReportViewer.RefreshReport 方法
该方法将刷新查看器中当前显示的报表的数据。将提示您输入报表需要的所有参数或登录信息。