Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: 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
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 at 17-Feb-13 8:20am
   
If I wish to take data from database write it on Pdf file. What should I do?
Sk. Tajbir at 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 at 17-Feb-13 8:46am
   
Is there any default asp.net component or only third party tools like PDFSharp , iTextSharp etc.??
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

If you want to export data from database to PDF, you can use this .net data export library: http://exportdata.codeplex.com/[^]it can export data from database, command, listview to PDF, html, word,excel with different charts, xml,csv,rtf,dif, txt,clippboard,ms access etc, it has a free version, you can give it a try.
  Permalink  

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

  Print Answers RSS
0 CPallini 365
1 Sergey Alexandrovich Kryukov 277
2 OriginalGriff 165
3 George Jonsson 159
4 Richard MacCutchan 110
0 OriginalGriff 6,344
1 Sergey Alexandrovich Kryukov 5,860
2 CPallini 5,125
3 George Jonsson 3,559
4 Gihan Liyanage 2,522


Advertise | Privacy | Mobile
Web01 | 2.8.140916.1 | Last Updated 19 Feb 2013
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