WPF 4 嵌入报表设计器

发布于 2024-09-30 11:43:26 字数 195 浏览 0 评论 0原文

是否可以将 Visual Studio 2010 报表设计器功能嵌入到我的 WPF 应用程序中? 最初,我正在考虑使用报告生成器,但为了从应用程序内提供临时报告功能,我需要在用户开始创建简单报告之前教他们太多步骤。因此,我现在正在考虑通过嵌入报表设计器(如果可能的话)来简化它,并以编程方式执行所有基本步骤,并在左侧显示设计图面和数据对象。

任何帮助表示赞赏。

Is it possible to embed the Visual Studio 2010 report designer functionality into my WPF application?
Initially I was considering the use of Report builder, but for providing ad-hoc reporting capability from within application, I need to teach users too many steps before they start creating a simple report. So I am now thinking of simplifying it by embedding the report Designer (if it is possible), and do all the basic steps programatically and show the design surface and Data objects on the left.

Any help is appreciated.

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

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

发布评论

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

评论(1

梦情居士 2024-10-07 11:43:26

到目前为止我还没有找到任何好的方法,所以决定使用Report Builder。我采取的方法是以编程方式构建一个报表框架,其中连接和查询嵌入在 RDL 中以公开对象模型而不是表和视图,然后启动报表生成器来打开此 RDL。是的..我需要构建一个包含大量不必要字段和连接的查询,这会产生大量开销,并且结果性能非常糟糕。在未来的版本中,我将询问用户他们需要使用报告来提高性能的字段。

看起来微软将从 2012 版本开始让客户付费购买 SSRS。因此,使用 SSRS 的这种选择甚至可能被排除。

I have not found any good way so far and decided to use Report Builder instead. The approach I took is to build a report skeleton programtically with connection and query embedded in the RDL to expose object model instead of tables and views and launching the Report Builder to open this RDL. Yes.. there is lot of overhead that I need to build a query with lot of unnecessary fields and joins and the resulting performance is terrible. In a future version I will come up asking the users the fields they need to use int he report to improve performance.

Looks like Microsoft is going to make customers pay for SSRS from 2012 version. So this choice of use SSRS may even b ruled out.

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