Is it possible to add a custom header to the Excel while exporting a DataSet to Excel in ASP.NET?
I have one requirement like this. I can export the DataSet to the Excel successfully. But I can’t add the custom header. Please help me if anybody have the solution. Thanks in advance.
Is it possible to add a custom header to the Excel while exporting a
Share
IF you are using
Response.Writeto Export the Excel.You can use the following code with minimal effort and the
Headercan be customized as you want, just like HTML headers.Mac, Are you looking for the same?