Here Mudassar Ahmed Khan has explained with an example, how to export Partial View to PDF file in ASP.Net MVC Razor.
First the Grid (Html Table) will be populated from database using Entity Framework inside the Partial View and then the HTML Table will be sent as HTML string to the Controller which ultimately will be exported to PDF file in ASP.Net MVC Razor.
↧