Click here to Skip to main content
15,501,155 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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 :)
Updated 21-Sep-12 0:44am

Take a screenshot of the form and then convert this bitmap image to a pdf using PDFSharp or any other converter.
Share this answer
Frans Jan 21-Sep-12 5:58am    
OK clear, but how do I use PDFSharp in my project? Do I need to add reference? If so, what reference do I need to add?
Abhinav S 21-Sep-12 6:01am    
Yes you will need to add references. You can check their documentation for the appropriate references you need to include in your project.
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
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900