简体   繁体   English

Windows Forms 应用程序的简单报告工具,RTF 报告?

[英]Easy reporting tool for Windows Forms applications, RTF reporting?

I have created one Windows Forms application with C# and MySQL (using MySQL Connector ). I have created one Windows Forms application with C# and MySQL (using MySQL Connector ). Now I need to create some reports from data in my MySQL database, and print it out.现在我需要从我的 MySQL 数据库中的数据创建一些报告,并将其打印出来。

I've tried Crystal Reports , Visual Studio 2010 reports and so on, but all seem complicated to use with my entity dataset.我已经尝试过Crystal Reports 、 Visual Studio 2010 报表等,但与我的实体数据集一起使用似乎都很复杂。

I'm using LINQ to get queries.我正在使用 LINQ 来获取查询。 Is there any way I can create reports like HTML format and simply print them through the application?有什么方法可以创建像 HTML 格式的报告并通过应用程序简单地打印它们? Someone asked me to send my data as RTF and straight without saving or printing it, but I cannot find a good tutorial for creating RTF like that.有人要求我将我的数据作为RTF直接发送而不保存或打印,但我找不到创建这样的 RTF 的好教程。

ReportViewer is a freely redistributable control that enables embedding reports in applications developed using the .NET Framework. ReportViewer是一个可自由再分发的控件,可以在使用 .NET 框架开发的应用程序中嵌入报表。 Reports are designed with drag-and-drop simplicity using Report Designer included in Visual Studio 2010. The ReportViewer site will give you all the necessary details.使用 Visual Studio 2010 中包含的报表设计器通过拖放式简单设计报表。ReportViewer 站点将为您提供所有必要的详细信息。 It may be a bit complicated, but it will do what you want.它可能有点复杂,但它会做你想做的事。 Reporting is a little difficult to understand anyway for a novice user.无论如何,对于新手用户来说,报告有点难以理解。

I hope you want something like below.我希望你想要像下面这样的东西。

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM