老兄啊,能否把操作说的详细一点啊?
我的报表不是显示不出数据,而是显示的是默认的报表里的数据。
我希望的是显示动态绑定给他的DataSet里的数据。
我的报表不是显示不出数据,而是显示的是默认的报表里的数据。
我希望的是显示动态绑定给他的DataSet里的数据。
解决方案 »
- c# filestream写入rar文件后打开文件时提示“不可预料的文件压缩末端”?
- 怎么将实例化后的对象的属性值重置?
- webBrowser怎样禁用IE打开页面?e.Cancel = true;没效果呢!
- 关于Dll之间参数的传递
- C#的Winform中如何调用网页中的内容(100分)?
- 求大侠帮忙搞了好久的一个mysql链接问题
- 怎么把指针所指范围的数据复制到指定Byte[] 数组?
- 新手想找一个关于学习window form的电子书
- 一个奇怪的问题
- c#中调用oracle procedure 出错,信息是"无法在分布式事务处理中rollback"
- 推荐基本c#的书~~
- ComboBox控件与数据集绑定,怎么将整个Items的值保存到数据库?而非仅是其Text?
myConnection=new SqlConnection("server=davis;database=student;user id=sa;password=");
myConnection.Open();
string strSql="SELECT xm,bjs,sf,dq,xs,xxlx FROM x_hunan WHERE bjs<12"; SqlCommand myCommand=new SqlCommand();
myCommand.Connection=myConnection;
myCommand.CommandType=CommandType.Text;
myCommand.CommandText=strSql;
SqlDataAdapter myAd=new SqlDataAdapter(strSql,myConnection);
myAd.SelectCommand=myCommand;
DataSet myDs=new DataSet();myAd.Fill(myDs,"x_hunan");
CrystalReport1 tmprpt=new CrystalReport1() ;
tmprpt.SetDataSource(myDs.tables["x_hunan"]);
crystalReportViewer1.ReportSource=tmprpt; 这样看行不行