K
KC Eric
Hi all,
I am trying to export the content of a datagrid to Excel format (xls) in
a Windows Application,
I google a bit, but the examples I found were focus on ASP.net, using
the response object, e.g.
HttpResponse response = HttpContext.Current.Response;
response.ContentType = "application/vnd.ms-excel";
How to achieve the same in a C# windows application?
Thanks a lot!
KC Eric
I am trying to export the content of a datagrid to Excel format (xls) in
a Windows Application,
I google a bit, but the examples I found were focus on ASP.net, using
the response object, e.g.
HttpResponse response = HttpContext.Current.Response;
response.ContentType = "application/vnd.ms-excel";
How to achieve the same in a C# windows application?
Thanks a lot!
KC Eric