So first check previous article and add Action Link in list.cshtml for Create PDF.
- Create PDF : @Html.ActionLink("Create PDF", "CreatePdf", "Home")


Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.




Guest UserPosted Aug 8, 2015, 6:27 PM
Thank you it seemed to have worked. If I want to add a company logo on the top left of the page, is this possible?
Malvik BhavsarPosted Jul 12, 2015, 12:10 AM
Hello Rivesh, you need replace this line "string exportData = String.Format("{0}{1}", "", gridHtml);" with this "string exportData = String.Format("<html><head>{0}</head><body>{1}</body></html>", "<style>table td,th{ border: 1px solid; border-collapse: separate}</style>" , gridHtml);"
Guest UserPosted Jun 25, 2015, 7:18 PM
Hi Malvik, is there any way to add grid lines to the pdf document?