Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# Visual-Studio PDF convert , +
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 Smile | :)
Posted 21-Sep-12 0:12am
Frans Jan2.2K
Edited 21-Sep-12 0:44am
v2
Rate this: bad
good
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.
  Permalink  
Comments
Frans Jan at 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 at 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: bad
good
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
  Permalink  
v2

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



Advertise | Privacy | Mobile
Web03 | 2.8.141220.1 | Last Updated 21 Sep 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

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