Click here to Skip to main content
14,244,068 members
Rate this:
Please Sign up or sign in to vote.
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 20-Sep-12 23:44pm
Rate this:
Please Sign up or sign in to vote.

Solution 1

Take a screenshot of the form and then convert this bitmap image to a pdf using PDFSharp or any other converter.
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.
Rate this:
Please Sign up or sign in to vote.

Solution 2

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

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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100