need to download ExportGrid.rarPSpintasoft system12yAsked Jul 18, 2014, 3:48 AM1kVisual Basic .NETExport GridView Data to Excel, Word, Pdf, Text and Csv Format and Print in Asp.Net
GUGuest User12y agoPosted Jul 23, 2014, 12:48 AM# you can retrieve data from gridview , e.g.,for (int rows = 0; rows < dataGrid.Rows.Count; rows++) { for (int col= 0; col < dataGrid.Rows[rows].Cells.Count; col++) { string value = dataGrid.Rows[rows].Cells[col].Value.ToString(); } }#use NuGet closedXML package to create excel http://www.campusmvp.net/blog/generating-excel-files-like-a-pro-with-closedxml# For PDF find similar package# CSV is plain text file you can use File IO to create csv file# For printing in Asp.Net there is good articlehttp://www.c-sharpcorner.com/uploadfile/rahul4_saxena/printing-in-Asp-Net/0
Guest UserPosted Jul 23, 2014, 12:48 AM
#use NuGet closedXML package to create excel
http://www.campusmvp.net/blog/generating-excel-files-like-a-pro-with-closedxml
# For PDF find similar package
# CSV is plain text file you can use File IO to create csv file
# For printing in Asp.Net there is good article
http://www.c-sharpcorner.com/uploadfile/rahul4_saxena/printing-in-Asp-Net/