Possible Duplicate:
How can I programatically create, read, write an excel without having office installed?
Can i create a Microsoft Excel file without using Microsoft Office Interop Assembly? I need to export all the values in a sql server table to an Excel file. Total number of rows can vary between 50000 to 1200000 rows. I need to generate the Excel file from my C#.net code where i will read the values of the table. The only restriction i have is I cannot use Microsoft Office Interop Assembly.
I can't use CSV, or use the HTML table trick, because some of the files will contain multiple tabs, where each tabs will contain data from different tables.