如何将Windows表单另存为pdf [英] How to Save Windows form as pdf

查看:131
本文介绍了如何将Windows表单另存为pdf的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在Microsoft Visual Studio 2005中创建具有多个表单的Windows应用程序.我希望用户能够将打开的表单导出为PDF文件.我遇到了一些建议PDFSharp [ ^ ]的答案,但是我有不知道如何使用它.我试图通过阅读论坛,其他问题和答案来弄清楚它,但是我不知道从哪里开始.因此,有人可以通过告诉我如何在我的项目中实现PDFSharp 来帮助我入门吗?

或者,如果您还有其他关于如何将Windows窗体保存为pdf的建议/建议,请让我知道:)

Hi all,

I''m creating a Windows Application with several forms in Microsoft Visual Studio 2005. I want the user to be able to export the open form as a PDF-file. I ran into some answers recommending PDFSharp[^], but I have no clue how to use it... I tried to figure it out by reading forums, other questions and anwers, but I''ve just no clue where to get started. So, can someone please help me get started, by telling me how to implement PDFSharp in my project?

Or if you guys have other suggestions/recommendations on how to save a Windows Form to pdf, please let me know :)

推荐答案

截取窗体的屏幕截图,然后使用PDFSharp或任何其他转换器将此位图图像转换为pdf.
Take a screenshot of the form and then convert this bitmap image to a pdf using PDFSharp or any other converter.


您可以使用Crystal Report或ITextSharp创建PDF的
在Crystal报表中或使用ITextSharp设计表单,并为用户提供下载选项....

截屏是向客户提供pdf
You can use Crystal Report or ITextSharp to create PDF''s
Design the Form in crystal reports or using ITextSharp and provide the user with download option....

Taking a Screen Shot is a weird way of giving a client, the pdf


这篇关于如何将Windows表单另存为pdf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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