Question: how to export database data to pdf file in asp.net?
Answer: Steps :
Step - 1 : Create New Project. ... 
Step-2: Add a Database. ... 
Step-3: Create table for fetch data. ... 
Step-4: Add Entity Data Model. ... 
Step-5: Add a Webpage and Design for Show Data in Gridview & Export to PDF. ... 
Step-6: Write following code in Page_Load event for Show data in Gridview. ... 
Step-7: Add Reference (itextsharp.