Export a .NET WinForms Form to PDF?

佐手、 提交于 2020-06-08 15:15:12

问题


I have a .NET WinForms containing a few user controls. these controls usually contain either a RichTextBox or similar text controls (also 3rd party grid, XtraGrid suite, but those have the feature i want). I want to export the form the same way it looks to a PDF document.

I've seen several libraries and general PDF creation features but im completely confused as to what i need exactly.

If anyone has any suggestions how to do the scenario I'm talking about, I'd appreciate the help and personal experience with PDF.


回答1:


I don't know if this is an option for you, but one simple possibility would be to use the PrintForm component in combination with one of the many programs that allow you to print to a pdf document instead of a printer.

Example apps that let you print to PDF include the full blown Adobe suite, CutePDF Writer (free)



来源:https://stackoverflow.com/questions/1674060/export-a-net-winforms-form-to-pdf

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