Asp.Net Web Form Click option ExportToExcelVLVenkatesh Lakshmanan10yAsked Sep 12, 2016, 3:24 AM771C# Corner Thanks
Bikesh Srivastava10y agoPosted Sep 12, 2016, 5:14 AMHi, Whatever you want open that is supportive so try particular format.xls0
Midhun Tp10y agoPosted Sep 12, 2016, 5:13 AMHi,I think you may need to add below line on your Export to excel code -Response.ContentType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";Please check below links too -http://stackoverflow.com/questions/16144900/the-file-you-are-trying-to-open-is-in-a-different-format-than-specified-by-the-fhttp://www.aspsnippets.com/Articles/Solution-ASPNet-GridView-Export-to-Excel-The-file-you-are-trying-to-open-is-in-a-different-format-than-specified-by-the-file-extension.aspx0
VLVenkatesh Lakshmanan10y agoPosted Sep 12, 2016, 4:53 AMHi, Execute SQL server query to get data stored in Dataset , then export that dataset values to excel in this case above screen shot issuse acquried.0
Nitin Sontakke10y agoPosted Sep 12, 2016, 3:31 AMSo, what your question? It would be difficult for us to guess, what exact thing you want to resolve.0
Bikesh SrivastavaPosted Sep 12, 2016, 5:14 AM
Midhun TpPosted Sep 12, 2016, 5:13 AM
Venkatesh LakshmananPosted Sep 12, 2016, 4:53 AM
Nitin SontakkePosted Sep 12, 2016, 3:31 AM