Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 99
  • Last Modified:

ASP.net produce a pdf from a GridView

Hi

What VB.net code would I use to convert the data in a bound GridView into a printable pdf document?

Thanks
0
Murray Brown
Asked:
Murray Brown
1 Solution
 
Deepak LakkadCommented:
Hi,

 iTextSharp library is useful for creating PDFs for Web Pages.

Folllowing is the link for Nuget Package

https://www.nuget.org/packages/iTextSharp/

Also, there is good example for exporting GridView to pdf is as below:

http://www.aspsnippets.com/Articles/How-to-export-GridView-data-to-PDF-file-in-ASPNet.aspx


Deepak Lakkad
0
 
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Thanks
1

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now