Click here to Skip to main content
15,845,785 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Experts i want to create excel file without using excel interop services (dll).
is there any way to create excel file without interop reference DLL? i want to create only excel file not csv.

Thanx in advanced.
Posted

Yes, the request is quite reasonable. Here is what you can do:

Instead of Office interop assemblies which require Office to be installed, you can use Open XML SDK:
http://www.microsoft.com/en-us/download/details.aspx?id=30425[^].

This way, you can support new XML-based Office formats (such as .DOCX, .XLSX), ECMA-376 standard:
http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats[^],
http://en.wikipedia.org/wiki/Office_Open_XML[^].

This is another option: http://npoi.codeplex.com/[^].

—SA
 
Share this answer
 
Comments
Maciej Los 29-May-13 3:18am    
+5
Sergey Alexandrovich Kryukov 29-May-13 3:23am    
Thank you, Maciej.
—SA
Wasim1989 29-May-13 3:38am    
thanx Sergy sir,
but how to create i didnt get any idea to create excel file. please answer.
Sergey Alexandrovich Kryukov 29-May-13 3:40am    
You just need to study Open XML SDK documentation. It's a lot of stuff, will take some time.
—SA
Wasim1989 29-May-13 8:37am    
thanks Sergy sir, i successfully created excel file without using interop dll and open.
but now when i am downloading than file and then open it is not opening. giving error like "Excel fount unreadable content myExcel.xlsx do you want to open" when i clicked on yes show message ="the file is corrupt and cannot be opened."
please tell me how to make download functionality for this file...
 
Share this answer
 
Comments
Maciej Los 29-May-13 3:18am    
+5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900