如何在WPF中生成报告?

时间:2022-04-12 16:38:22

I'd like to know of any tools to generate a report in wpf.

我想知道在wpf中生成报告的任何工具。

What I want to do is to generate the report and export it immediately to a pdf, csv or just print it. I don't want the client to be able to "adjust" the report from within my application. Also the report tool should give me lots of freedom, since I'm geerating reports from a datagrid that is constantly changing, according to the user's commands (in other words .. it's dynamic)

我想要做的是生成报告并立即将其导出到pdf,csv或只打印它。我不希望客户端能够在我的应用程序中“调整”报告。此外,报告工具应该给我很大的*,因为我根据用户的命令(换句话说......它是动态的)从一个不断变化的数据网格中生成报告。

Does anyone know of any tools that allow me to do that (preferably an open source tool, but I'm not tied to it being open source)?

有没有人知道任何允许我这样做的工具(最好是一个开源工具,但我并不认为它是开源的)?

5 个解决方案

#1


0  

You can use Crystal Reports, just like we use it in WinForms.

您可以使用Crystal Reports,就像我们在WinForms中使用它一样。

#2


1  

Reporting isn't specific to WPF. You can look at Crystal Reports, SSRS Reports (both server *.rdl and client embedded *.rdlc), or tools from companies like DevExpress' XtraReports.

报告不是WPF特有的。您可以查看Crystal Reports,SSRS报告(服务器* .rdl和客户端嵌入式* .rdlc),或者来自DevExpress'XtraReports等公司的工具。

The +1 for using SSRS Reports is that there appears to be a Mono project that will allow you to render them, so you're not tied 100% to the Microsoft server stack, if you have that requirement. Look at FYI Reporting from the provided link.

使用SSRS报告的+1是,似乎有一个允许您渲染它们的Mono项目,因此如果您有此要求,则不会100%绑定到Microsoft服务器堆栈。从提供的链接查看FYI报告。

#3


1  

If you are familiar with crystal reports, this may be useful to you. Otherwise you could always use xslt and xml

如果您熟悉水晶报告,这可能对您有用。否则你总是可以使用xslt和xml

This answer makes a a compelling arguement for micrsoft or third party reporting compared to xslt "hand made" reports.

与xslt“手工制作”报告相比,这个答案对micrsoft或第三方报告提出了令人信服的论据。

Edit: As a first go, it may be adviseable to use the crystal report creation wizard

编辑:首先,建议使用水晶报表创建向导

#4


0  

You have several options here.

你有几个选择。

You can print a visual to pdf using a virtual printer: http://www.pdfforge.org/products/pdfcreator.

您可以使用虚拟打印机将视觉效果打印为pdf:http://www.pdfforge.org/products/pdfcreator。

There are also XPS to PDF converters.

还有XPS到PDF转换器。

And, of course, there are numerous WPF based report generators.

当然,还有许多基于WPF的报告生成器。

You're question is quite clear, so I wasn't sure what exactly you were after.

你的问题很清楚,所以我不确定你到底是怎么回事。

#5


0  

You may consider using ActiveReports to fulfill your reporting needs as ActiveReports has a viewer and end user report designer control which can work quite well in WPF environment.The End user designer control will also allow your end users modify reports at their will.

您可以考虑使用ActiveReports来满足您的报告需求,因为ActiveReports具有查看器和最终用户报表设计器控件,可以在WPF环境中很好地工作。最终用户设计器控件还允许最终用户随意修改报表。

Regarding the exporting capabilities , ActiveReports will let you export to PDF,Excel,Word,Tiff,Jpeg,Text etc.And lastly activereport will give you the flexibility you are looking for as it can be bound to datasets,XML,OLedbm,sql,Excel sheets, text,array, objects etc ..

关于导出功能,ActiveReports将允许您导出为PDF,Excel,Word,Tiff,Jpeg,Text等。最后,activereport将为您提供所需的灵活性,因为它可以绑定到数据集,XML,OLedbm,sql, Excel工作表,文本,数组,对象等。

You can visit these links to know more how ActiveReports works on WPF: http://blogs.gcpowertools.co.in/2011/11/how-to-view-report-created-using-active.html

您可以访问这些链接以了解ActiveReports在WPF上的工作原理:http://blogs.gcpowertools.co.in/2011/11/how-to-view-report-created-using-active.html

http://blogs.gcpowertools.co.in/2011/08/how-to-host-active-reports-end-user.html

#1


0  

You can use Crystal Reports, just like we use it in WinForms.

您可以使用Crystal Reports,就像我们在WinForms中使用它一样。

#2


1  

Reporting isn't specific to WPF. You can look at Crystal Reports, SSRS Reports (both server *.rdl and client embedded *.rdlc), or tools from companies like DevExpress' XtraReports.

报告不是WPF特有的。您可以查看Crystal Reports,SSRS报告(服务器* .rdl和客户端嵌入式* .rdlc),或者来自DevExpress'XtraReports等公司的工具。

The +1 for using SSRS Reports is that there appears to be a Mono project that will allow you to render them, so you're not tied 100% to the Microsoft server stack, if you have that requirement. Look at FYI Reporting from the provided link.

使用SSRS报告的+1是,似乎有一个允许您渲染它们的Mono项目,因此如果您有此要求,则不会100%绑定到Microsoft服务器堆栈。从提供的链接查看FYI报告。

#3


1  

If you are familiar with crystal reports, this may be useful to you. Otherwise you could always use xslt and xml

如果您熟悉水晶报告,这可能对您有用。否则你总是可以使用xslt和xml

This answer makes a a compelling arguement for micrsoft or third party reporting compared to xslt "hand made" reports.

与xslt“手工制作”报告相比,这个答案对micrsoft或第三方报告提出了令人信服的论据。

Edit: As a first go, it may be adviseable to use the crystal report creation wizard

编辑:首先,建议使用水晶报表创建向导

#4


0  

You have several options here.

你有几个选择。

You can print a visual to pdf using a virtual printer: http://www.pdfforge.org/products/pdfcreator.

您可以使用虚拟打印机将视觉效果打印为pdf:http://www.pdfforge.org/products/pdfcreator。

There are also XPS to PDF converters.

还有XPS到PDF转换器。

And, of course, there are numerous WPF based report generators.

当然,还有许多基于WPF的报告生成器。

You're question is quite clear, so I wasn't sure what exactly you were after.

你的问题很清楚,所以我不确定你到底是怎么回事。

#5


0  

You may consider using ActiveReports to fulfill your reporting needs as ActiveReports has a viewer and end user report designer control which can work quite well in WPF environment.The End user designer control will also allow your end users modify reports at their will.

您可以考虑使用ActiveReports来满足您的报告需求,因为ActiveReports具有查看器和最终用户报表设计器控件,可以在WPF环境中很好地工作。最终用户设计器控件还允许最终用户随意修改报表。

Regarding the exporting capabilities , ActiveReports will let you export to PDF,Excel,Word,Tiff,Jpeg,Text etc.And lastly activereport will give you the flexibility you are looking for as it can be bound to datasets,XML,OLedbm,sql,Excel sheets, text,array, objects etc ..

关于导出功能,ActiveReports将允许您导出为PDF,Excel,Word,Tiff,Jpeg,Text等。最后,activereport将为您提供所需的灵活性,因为它可以绑定到数据集,XML,OLedbm,sql, Excel工作表,文本,数组,对象等。

You can visit these links to know more how ActiveReports works on WPF: http://blogs.gcpowertools.co.in/2011/11/how-to-view-report-created-using-active.html

您可以访问这些链接以了解ActiveReports在WPF上的工作原理:http://blogs.gcpowertools.co.in/2011/11/how-to-view-report-created-using-active.html

http://blogs.gcpowertools.co.in/2011/08/how-to-host-active-reports-end-user.html