Click here to Skip to main content
12,255,431 members (27,748 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# ASP.NET C#4.0
Suppose I have an asp.net form where different information about a person. When I click on submit button in a asp.net web form, I want to write all the information in a pdf file like a resume. How can i make this in PDF file? Is there any default PDF content in asp.net C#?
Posted 17-Feb-13 1:56am

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Hi,
A good way to generate PDF in a situation like yours is to create PDF from HTML. Create a text file written all your HTML code. Then replace specific section of that text file with your desired or input text of the form. Then you can convert that HTML into PDF file. Now there are many way to convert HTML to PDF file. Check below links..

Similar Question at Codeproject:
How to create PDF file from a HTML page asp.net C#[^]

Other Links:
http://www.devtoolshed.com/content/c-free-component-generate-pdf-convert-html-pdf[^]
http://www.duodimension.com/html_pdf_asp.net/Articles/pdfduo23_090815.html[^]
http://www.dotnetobject.com/Thread-Html-to-Pdf-conversion-in-asp-net-c[^]

I hope this will help.
Thanks Smile | :)
  Permalink  
Comments
Shafiqur Rahman, Banladesh 17-Feb-13 8:20am
   
If I wish to take data from database write it on Pdf file. What should I do?
Sk. Tajbir 17-Feb-13 8:47am
   
You can use same method.. just replace your value from database with a specific section of the html written text file..
Shafiqur Rahman, Banladesh 17-Feb-13 8:46am
   
Is there any default asp.net component or only third party tools like PDFSharp , iTextSharp etc.??

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160426.1 | Last Updated 22 May 2015
Copyright © CodeProject, 1999-2016
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