Click here to Skip to main content
15,885,709 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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

1 solution

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 :)
 
Share this answer
 
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)



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