Timeline for How do I create an Excel (.XLS and .XLSX) file in C# without installing Microsoft Office?
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 3, 2022 at 10:13 | comment | added | Caius Jard | Watch out for security warnings appearing to your user if you do this: "Warning, the content of the file doesn't match the extension". Particularly alarming when you're doing a download from your bank. I wouldn't rcommend pursuing the approach mentioned in this answer | |
May 6, 2021 at 21:35 | comment | added | John Coleman | An even more lightweight version is to just create a csv file, which Windows associates with Excel. | |
Nov 13, 2019 at 17:26 | history | edited | Michael Phillips | CC BY-SA 4.0 |
Changed example url to web.archive.org as original no longer available (http://jasonhaley.com is still there but the post isn't)
|
Dec 8, 2016 at 22:55 | comment | added | Kristen Hammack | Some people at my organization can't open excel files made this way in Office 2010 and above. Don't know what the problem is, but I had to roll my own OpenXML implementation. (see Sogger's answer) | |
Mar 30, 2016 at 18:24 | comment | added | Jill | This solution worked fine for me, just note you cannot use .xlsx extension | |
Jan 4, 2012 at 7:23 | comment | added | Luka Ramishvili | It's so ad hoc but it works (not to mention excel issuing a warning on opening) and is so simple, it deserves to have a place as a solution. Though only for showing that you can export an excel file :)) | |
Dec 8, 2010 at 5:39 | history | made wiki | Post Made Community Wiki | ||
Sep 29, 2008 at 22:46 | history | edited | Forgotten Semicolon | CC BY-SA 2.5 |
added 324 characters in body
|
Sep 29, 2008 at 22:37 | history | answered | Forgotten Semicolon | CC BY-SA 2.5 |