将 .NET WinForms 表单导出为 PDF?
我有一个包含一些用户控件的.NET WinForms。这些控件通常包含 RichTextBox 或类似的文本控件(还有第 3 方网格、XtraGrid 套件,但它们具有我想要的功能)。我想以与 PDF 文档相同的方式导出表单。
我见过几个库和一般的 PDF 创建功能,但我完全不知道我到底需要什么。
如果有人对如何完成我正在讨论的场景有任何建议,我将不胜感激 PDF 的帮助和个人经验。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不知道这是否适合您,但一种简单的可能性是使用 PrintForm 组件与众多允许您打印到 pdf 文档而不是打印机的程序之一结合使用。
可让您打印为 PDF 的示例应用程序包括完整的 Adobe 套件 CutePDF Writer(免费)
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)