ReportDocument myReport = new ReportDocument();
myReport.Load("crystalreport1.rpt");
myReport.SetDataSource( ds.Tables["表名"]);
http://topic.csdn.net/u/20090713/18/6e14bf28-1979-4ade-9c60-aaf09284553d.html
myReport.Load("crystalreport1.rpt");
myReport.SetDataSource( ds.Tables["表名"]);
http://topic.csdn.net/u/20090713/18/6e14bf28-1979-4ade-9c60-aaf09284553d.html
解决方案 »
- Winform上传下载图片和资料到服务器
- checkbox为什么没有 readonly属性
- DevExpress 如何使工具栏不要浮动
- 想做个图片上传前预览的功能
- 在TextBox.Enable=False的时,不想字体变成灰色,怎么办?
- 怎么样在 .NET 下做一个程序,让这个程序做这样的一件事: 24小时检测公司的防火墙是不是死掉,如果死掉就调用 DEPLHI平台下编译的短信平
- 不是继承于System.Web.UI.Page和UserControl的类里面如何调用LoadControl方法?
- 使用 ArcGIS Engine Runtime 制作安装包
- vs2005,winform,rdlc报表 客户如何能自个调整报表上元素的位置?
- 如何通过程序打开(调用)IE中的"Internet选项"点击以后的那个窗口?
- 怎样具体理解接口?
- 海泰USBKey3000获取读写器名字问题
string reportPath = Server.MapPath("rptAttendance.rpt");
myReport.Load(reportPath);myReport.SetDataSource(dt);
CrystalReportViewer1.ReportSource = myReport;
这个DATASET和你的DATATABLE栏位一样。