Here Mudassar Ahmed Khan has explained with an example, how to export Grid (Html Table) data from database to PDF using iTextSharp file in ASP.Net MVC Razor.
First the Grid (Html Table) will be populated from database using Entity Framework and then the records from the database will be exported and downloaded as PDF file using iTextSharp XMLWorkerHelper library in ASP.Net MVC Razor.
↧