Learn the excel file format, construct a properly formed file in a byte[], and write it out to a file.
Or you might want to look at a third party library like
poi.
There may be a way through ODBC, but I've never tried it and you still might need some additional library.
[ May 26, 2005: Message edited by: Steven Bell ]