几个DataSet作为报告DataSource运行时问题 [英] Several DataSet as the report DataSource runtime problem

查看:76
本文介绍了几个DataSet作为报告DataSource运行时问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有基于Crystal Report的文档几个DataSet(DataSet通过其XSD架构连接)。没有子报表 - 只有包含3个不同DataSet的字段的主报表。所以在运行时我想为这个报告设置DataSource,我不知道怎么做。

< FONT face = Tahoma color = black size = 2> 请注意,数据集不会保留在数据库中。我只有DataSet对象。那么,您知道如何将这些DataSet设置为DataSource吗?

谢谢。

推荐答案

您可以按表设置数据源表。

You can set the datasource table by table.

myReportDoc.Database.Tables [0] .SetDatasource(ds1.tables [0])。

myReportDoc.Database.Tables[0].SetDatasource(ds1.tables[0]).

您需要确保使表格与您设计报告的方式相符。可能需要一些时间来确定如何正确索引表格。

You need to make sure you make the tables match up with how you designed the report.  It may take some time figuring out how to properly index the tables.


这篇关于几个DataSet作为报告DataSource运行时问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆