我的程序创建的水晶报表和数据表出现问题

发布于 2024-10-08 20:35:48 字数 245 浏览 0 评论 0原文

我遇到这个问题已经有一段时间了。我从项目资源管理器创建一个数据集。

我添加了一个数据表。为其命名并填写列名称。

我从项目资源管理器创建了一个水晶报告,并用数据库专家的表格填充它。我可以找到表名并使用它。

我在同一数据集中创建另一个数据表。

我去水晶报告中的数据库专家也添加到该表中。

或者我创建一个新的水晶报告。但我在数据集中找不到任何表了。

这是为什么?我需要链接表格什么的吗?

I have been having this problem for quite some time. I create a dataset from project explorer.

I add in a datatable. Name it and fill the column names.

I create a crystal report from project explorer and fill it with the table from database expert. I can find the table name and use it.

I create another datatable into the same dataset.

I go to database expert in the crystal report to add in that table also.

Or I creat a new crystal report. But I can't find any table in the dataset anymore.

Why is that? Do I need to link the table or something?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

柒夜笙歌凉 2024-10-15 20:35:48

AFAIK,可以将水晶报表绑定到具有两个表的数据集 - 但是,它们之间必须具有关系。这是因为 Crystal Report 无法从多个数据源进行报告 - 因此本质上,我们必须连接两个表中的数据以创建可以与 Crystal Report 绑定的单个投影。对于多个数据源,必须使用子报表。请参阅以下描述如何使用多表数据集的文章:

http://www.aspfree.com/c/a/Database/Generate-a-Multiple-Table-Crystal-Report-using-VS-2005/

http://www.highoncoding.com/Articles/556_Creating_Crystal_Report_with_Multiple_Tables_in_ASP_NET.aspx

http://www.emoreau.com/Entries/Articles /2006/09/Feeding-Crystal-Reports-from-your-application.aspx

前两个使用报告向导,但您始终可以查看生成的报告/数据集以了解它是如何完成的。

AFAIK, its possible to have crystal report bound to a dataset having two tables - however, they must have a relationship among them. This is because crystal report cannot report from multiple data sources - so essentially, we had to join the data from both table to create a single projection that can be bound with crystal report. For multiple data sources, one has to use sub-report. Please refer below articles that describes how to use multi-table datasets:

http://www.aspfree.com/c/a/Database/Generating-a-Multiple-Table-Crystal-Report-using-VS-2005/

http://www.highoncoding.com/Articles/556_Creating_Crystal_Report_with_Multiple_Tables_in_ASP_NET.aspx

http://www.emoreau.com/Entries/Articles/2006/09/Feeding-Crystal-Reports-from-your-application.aspx

First two uses Report Wizard but you can always look at generated report/dataset to understand how it is done.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文