如何获得包含帐户信息的 Visual Studio 报告 (.rdlc) 以及同一报告中的图表?

发布于 2024-08-25 00:26:17 字数 271 浏览 2 评论 0原文

我正在 Visual Studio 2008 中使用其报告工具编写报告,但我不确定如何从概念上处理此问题。

我有一份想要生成的报告。报告的顶部将是有关我们网站客户的大量信息(姓名、地址、电话)。下面是客户每月的购买量图表。

我的问题是我希望页面顶部的内容使用从数据库中的“用户”表中选择的查询。但随后我需要另一个查询来获取按月分组的所有购买情况。

我认为解决此问题的一种方法是在仅包含图表的父报告上放置一个子报告。父报告将包含该帐户的详细信息。

这是正确的方法吗?

I'm working on a report in Visual Studio 2008 with their Report tooling and I'm not sure how to approach this conceptually.

I have a report I want to generate. At the top of the report will be a bunch of information about a customer of our site (Name, Address, Phone). Then below will be a chart of the purchases that customer has each month.

My problem is that I want the content at the top of the page to use a query that selects from my Users table in my database. But then I need another query that gets all of the purchases grouped by month.

I've thought one way to approach this would be to place a subreport on the parent report that only contained the chart. The parent report would have the details of the account.

Is this the correct approach?

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

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

发布评论

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

评论(1

美人如玉 2024-09-01 00:26:17

您有两种方法,首先使用子报表,其次使用列表并在其上创建一个组。通过列表,您可以对您喜欢的数据进行分组。

you have two approach, first use subreport and second use a list and make a group on it. by list you can group your favorite data.

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