好心人请进!!vs2005中水晶报表如何实现主从报表用dataset或xml数据集的方法

shaobin000 2007-03-08 10:44:31
先谢谢了...
...全文
315 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
RockyZou 2007-05-25
  • 打赏
  • 举报
回复
'''数据源的主从表的关联需要设定
Dim strXsd As String = Server.MapPath("../rep/aa.xsd")
Dim dst as New DataSet()
'数据表生成
dst.ReadXmlSchema(strXsd)
'数据取得 --省略
....

Dim customerReport As New ReportDocument()
'报表载入
Dim reportPath As String = Server.MapPath("../rep/aa.rpt")
customerReport.Load(reportPath)
'主报表数据源设定
customerReport.SetDataSource(dst)
'子报表数据源设定
customerReport.Subreports(0).SetDataSource(dst)
Me.CrystalReportViewer1.ReportSource = customerReport
Me.CrystalReportViewer1.DataBind()

4,819

社区成员

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

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