all groups > c# > june 2006 >
You're in the

c#

group:

Exporting datagrid to Excel in a Windows Application



Re: Exporting datagrid to Excel in a Windows Application Nicholas Paldino [.NET/C# MVP]
6/18/2006 11:40:45 AM
c#: Eric,

It would be very different. Your best bet is to either use the OLEDB
adapter for Excel/CSV files, or to populate a sheet using Excel automation.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com

[quoted text, click to view]

Exporting datagrid to Excel in a Windows Application KC Eric
6/18/2006 10:59:45 PM
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!
Re: Exporting datagrid to Excel in a Windows Application mickwen NO[at]SPAM 163.com
7/17/2006 8:38:16 PM
There is .net component call spire.dataexport, I have heard that it is
quite good for generating Excel files. It can create Excel files
without MS Excel installed on the machine,Free download.
http://www.e-iceblue.com
KC Eric =E5=86=99=E9=81=93=EF=BC=9A

[quoted text, click to view]
AddThis Social Bookmark Button