用于pdf输出的winforms报告生成器

时间:2021-06-29 21:10:27

Need to generate some financial report where the formatting is controlled by the data

需要生成一些财务报告,其中格式由数据控制

haven't done reporting in a while but does any reporting support that

暂时没有报告,但是有任何报告支持

e.g. based on a flag in the source dataset the row text could be bold the row could have an underlining the report could start a new group header etc.

例如基于源数据集中的标志,行文本可以是粗体,行可以有下划线,报表可以启动新的组头等。

1 个解决方案

#1


There is a component called the ReportViewer for WinForms which ships with Visual Studio. This will do exactly what you need. You can bind it to one or more DataTables and it will essentially render you a report in PDF or in XLS or what have you. If you don't need to present it to the user, just use the LocalReport class and call its Render() method.

在Visual Studio中有一个名为ReportViewer for WinForms的组件。这将完全符合您的需求。您可以将其绑定到一个或多个DataTables,它实际上将呈现PDF或XLS中的报告或您拥有的内容。如果您不需要将其呈现给用户,只需使用LocalReport类并调用其Render()方法。

#1


There is a component called the ReportViewer for WinForms which ships with Visual Studio. This will do exactly what you need. You can bind it to one or more DataTables and it will essentially render you a report in PDF or in XLS or what have you. If you don't need to present it to the user, just use the LocalReport class and call its Render() method.

在Visual Studio中有一个名为ReportViewer for WinForms的组件。这将完全符合您的需求。您可以将其绑定到一个或多个DataTables,它实际上将呈现PDF或XLS中的报告或您拥有的内容。如果您不需要将其呈现给用户,只需使用LocalReport类并调用其Render()方法。