We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How to export GridView contenet to PDF


how could i export GridView rows to pdf file ?
and how could i export GirdView rows with header to Excel (i did exporting but without header)

thank you


Hello Osama,

Thanks for considering Aspose.

Aspose.Pdf for .NET offers the capability to create tables inside PDF document and you can also bind the data sources with these tables. Currently Aspose.Pdf for .NET offers the feature to import data from Object Array, DataTable and DataView and display it inside the PDF document.

As per your requirement, first you need to convert the GridView to DataTable and then you can use Aspose.Pdf for .NET to place the contents inside the PDF document. Please visit the following link for information on how to Integrate Table with Database

I would also recommend you to visit the following external links for information on how to convert GridView to DataTable

  1. GridView to DataTable
  2. Convert GridView to DataTable

In case it does not satisfy your requirement or you have any further query, please feel free to contact.