winforms report generator for pdf output

别来无恙 提交于 2019-12-08 07:12:54

问题


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:


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.



来源:https://stackoverflow.com/questions/1141350/winforms-report-generator-for-pdf-output

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!