pdf输出的winforms报告生成器 [英] winforms report generator for pdf output

查看:55
本文介绍了pdf输出的winforms报告生成器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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.

推荐答案

Visual Studio 附带了一个名为 ReportViewer for WinForms 的组件.这将完全满足您的需求.您可以将它绑定到一个或多个 DataTables,它基本上会以 PDF 或 XLS 格式或您拥有的格式为您呈现报告.如果您不需要将其呈现给用户,只需使用 LocalReport 类并调用其 Render() 方法.

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.

这篇关于pdf输出的winforms报告生成器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆