VS2005水晶报表的问题!!

Lamya 2006-02-23 11:31:55
刚装了VS2005在asp.net里做水晶报表和2003不一样。
请问怎样在2005里做push模式的报表?
详细的步骤是怎样的和2003有什么区别?
...全文
230 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
Gspeed 2006-02-28
  • 打赏
  • 举报
回复
假设rptDEP是报表名称,DS是数据集,RptV是报表查看器。下面就实现的代码
RptDep RptDep = new RptDep();
RptDep.SetDataSource(DS.Tables["表名"]);
this.RptV.ReportSource = RptDep;
Gspeed 2006-02-28
  • 打赏
  • 举报
回复
一样的,用水表做好报表后,
DS DS = new DS();
wsrs.DSTableAdapters.DepartmentsTableAdapter DADEP = new wsrs.DSTableAdapters.DepartmentsTableAdapter();
DADEP.FillByDepName(DS.Departments, DepName);
//MessageBox.Show(DepName + DepMonth);
RptDep RptDep = new RptDep();
RptDep.SetDataSource(DS.Tables["DepartMents"]);
this.RptV.ReportSource = RptDep;
jhpxf 2006-02-27
  • 打赏
  • 举报
回复
不错不错
lubosun 2006-02-24
  • 打赏
  • 举报
回复

帮你顶
极客行天下 2006-02-24
  • 打赏
  • 举报
回复
我刚试过,基本是一样的,但做好后不知怎么发布到服务器上,我用vs2005发布后出错
Lamya 2006-02-24
  • 打赏
  • 举报
回复
急啊!有没有人帮帮我啊?
Lamya 2006-02-24
  • 打赏
  • 举报
回复
异常详细信息: System.Runtime.InteropServices.COMException: 无效的类别字符串

源错误:


行 36: SqlDataAdapter sda = new SqlDataAdapter("select *from NewJr", con);
行 37: sda.Fill(ds,"stu");
行 38: this.CrystalReportSource1.ReportDocument.SetDataSource(ds.Tables["stu"]);
行 39: this.CrystalReportViewer1.ReportSource = this.CrystalReportSource1.ReportDocument;
行 40:
这是怎么回事啊?

4,819

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 图表区
社区管理员
  • 图表区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧