报告(免费 || 开源) Winforms 中 Crystal Reports 的替代品

发布于 2024-07-17 13:03:41 字数 1539 浏览 1 评论 0 原文

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

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

发布评论

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

评论(11

剧终人散尽 2024-07-24 13:03:41

你总是可以自己推出。 我正在我们的项目中摆脱水晶报表,因为目前,如果不将每个人都升级到XP,我们就无法更新旧报表,因为我们是在VS 2008中开发的,而新的CR不支持Win2K。 另外,CR 需要大约 30 秒来构建和加载报告,我的是瞬时的。

我编写了我自己的 XML 序列化器,并且构建了自定义对象从 List 、DataTables 等填充,序列化对象,将其加载到 XmlDocument 中,附加 XSLT 样式表,并将其写入包含该 XSLT 文件以及任何 CSS 和图像的目录。 当 XML 文件在用户浏览器中打开时,XSLT 文件会将其转换为 HTML/CSS。

我还可以将其加载到 WebBrowser 控件中,并使用免费的 PDF 库之一将其转换为 PDF 并打印。 有关更多详细信息,请参阅以下主题:

You could always roll your own. I'm getting rid of Crystal Reports in our project because currently, we can't update our old reports without upgrading everyone to XP, because we develop in VS 2008, and the new CR doesn't support Win2K. Also, CR takes about 30 seconds to build and load the report, mine is instantaneous.

I wrote my own XML serializer, and I build custom objects that are populated from List<T>s, DataTables, etc..., serialize the object, load it into an XmlDocument, append an XSLT stylesheet, and write it to a directory containing that XSLT file and any CSS and images. The XSLT file then transforms it to HTML/CSS when the XML file is opened in the user's browser.

I could also probably load it into a WebBrowser control and use one of the free PDF libraries to convert it to PDF and print it. See these threads for more details:

但可醉心 2024-07-24 13:03:41

我建议您使用 fyiReporting (分叉并移动,自 2012 年起当前)工具。 我使用过 fyiReporting 和 Crystal,不得不说我更喜欢 fyiReporting(尽管他们的网站是 ghetto)。

选择fyiReporting的原因

  1. 如果您想取代Crystal,那么您已经习惯了报表设计器。 FyiReporting 有自己的 GUI,就像 Crystal Reports 一样用于创建和运行报表(您可以只创建和分发报表而无需构建应用程序)。

  2. FyiReports 允许您将报告导出为 PDF、Excel 和 mht(静态网页),仅举几例。

  3. FyiReports 基于 xml,因此可以将报告定义保存在数据库中并随时更改。

  4. 如果您使用.Net,FyiReporting 有一个 Web 和 Windows 窗体控件,用于将报表嵌入到您的应用程序中(很像水晶报表)。 我对 Java 不太确定,因为我是 .Net 人员。

无论如何,请尝试一下 FyiReports。

I would suggest that you use the fyiReporting (Forked and Moved Now Current as of 2012) tool if you are looking to replace Crystal Reports. I have used both fyiReporting and Crystal and would have to say that I prefer fyiReporting(though their website is ghetto).

Reasons for choosing fyiReporting

  1. If you want to replace Crystal then you are used to having a Report designer. FyiReporting has its own GUI just like Crystal Reports for creating and running reports(You could just create and distribute reports without building an application).

  2. FyiReports allows you to export the Report as PDF, excel and mht(static web page) just to mention a few.

  3. FyiReports are xml based so the report definition can be saved in a database and altered at anytime.

  4. If you are using .Net FyiReporting has a Web and Windows Forms control for embedding the report in your applications(much like crystal reports). I am not so sure about Java as I am a .Net guy.

Anyway give FyiReports a try.

李不 2024-07-24 13:03:41

您可以在本地模式下使用 MS Report Viewer 或开源 fyiReporting RDL 项目

You could use the MS Report Viewer in local mode or the open source fyiReporting RDL Project

静水深流 2024-07-24 13:03:41

您可以使用 Visual Studio 中提供的 RDLC 文件定义您的报告布局。 您可以使用 ReportViewer 控件 查看 rdlc 。

两者都是 Visual Studio 开箱即用的。

You can use an RDLC file provided in visual studio to define your report layout. You can view the rdlc using the ReportViewer control.

Both are provided out of the box with visual studio.

鹤仙姿 2024-07-24 13:03:41

如果您使用的是 Sql Server(任何版本,甚至是 Express),则可以安装 Sql Server Reporting Services。 这允许通过 Visual Studio 插件或浏览器控件创建报告,并且可以以多种格式导出报告,包括 PDF。 您可以通过附带的 winforms 报告查看器控件查看报告,或利用所有内置生成的 Web 内容。

如果您习惯在 Visual Studio 中使用数据集,那么学习曲线一点也不陡峭。

If you are using Sql Server (any edition, even express) then you can install Sql Server Reporting Services. This allows the creation of reports through a visual studio plugin, or through a browser control and can export the reports in a variety of formats, including PDF. You can view the reports through the winforms report viewer control which is included, or take advantage of all of the built in generated web content.

The learning curve is not very steep at all if you are used to using datasets in Visual Studio.

夜访吸血鬼 2024-07-24 13:03:41

JasperReports:http://jasperforge.org

openreports: http://oreports.com/ 用于托管 jasper 文件。

不是专门的报告工具,但 displaytag 是一个简单的 java 标签,可以发出 csv、xls 和 pdf。

http://displaytag.sourceforge.net/1.2/

JasperReports: http://jasperforge.org.

openreports: http://oreports.com/ For hosting jasper files.

Not specifically a reporting tool but displaytag is a simple java tag that will emit, csv, xls and pdf.

http://displaytag.sourceforge.net/1.2/

如梦 2024-07-24 13:03:41

You could try implemeting something like this: http://www.codeproject.com/KB/cs/reporting__windowsforms.aspx

人心善变 2024-07-24 13:03:41

MS 的免费 SQL Server 2008 Express(带有高级服务)似乎包含报告服务。

http://www.microsoft.com/express/sql/download/

这里报告功能与完整版本有何不同:http://msdn.microsoft.com /en-us/library/ms365166.aspx

编辑:我不知道这是否适用于 winforms,但它看起来仍然有用。

MS' free SQL Server 2008 Express (with Advanced Services) looks to include reporting services.

http://www.microsoft.com/express/sql/download/

Here how reporting features differ from the full version: http://msdn.microsoft.com/en-us/library/ms365166.aspx

EDIT: I don't know if this works in winforms but it still looks useful.

鲜肉鲜肉永远不皱 2024-07-24 13:03:41

BIRTEclipse 商业智能和报告工具是开源的。

BIRT 是一个基于 Eclipse 的开源报告系统,它与 Java/J2EE 应用程序集成以生成引人注目的报告。 BIRT 提供核心报告功能,例如报告布局、数据访问和脚本编写。

BIRT, the Eclipse Business Intelligence and Reporting Tool is open source.

BIRT is an open source Eclipse-based reporting system that integrates with your Java/J2EE application to produce compelling reports. BIRT provides core reporting features such as report layout, data access and scripting.

我也只是我 2024-07-24 13:03:41

免费尝试带有烦人的横幅...DevExpress XtraReports 和 XRCharts。 非常好的开发工具,大力支持,从经验来看。

Free to try with a nagging banner... DevExpress XtraReports and XRCharts. Very nice dev tool, great support, speaking from experience.

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