Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi,

I want to export some data to an Excel sheet using c#.

In my PC I have open office.
I dont have msoffice, so can I do this?


If yes, please help me.

Thanks for any replys.
Posted
Updated 23-Nov-10 22:16pm
v2
Comments
Sunasara Imdadhusen 24-Nov-10 2:02am    
Did you use Microsoft Interop DLL?
Mycroft Holmes 24-Nov-10 3:06am    
Typical troll posting - 1st post and it is designed to irritate the people who help here.

Be off with you foul TROLL
Sandeep Mewara 24-Nov-10 3:28am    
"Send me d code" -> avoid this & the text speak!
Dalek Dave 24-Nov-10 4:17am    
Edited for Grammar, Spelling, Syntax and Readability.

 
Share this answer
 
Comments
Dalek Dave 24-Nov-10 4:17am    
Good Link.
Microsoft Interop DLL
i've tried to import that dll..but my code is not supporting that.
 
Share this answer
 
Comments
Feence 9-May-16 4:43am    
Yes that was actually expected, you see in order to use Excel Interop in C# you need to have MS Excel installed on your machine.
Nevertheless there are ways how you can accomplish your task without it, for example see this C# library for excel. It does not have dependency with
MS Excel so it will work without it. Also see this sample of exporting datatable to an excel file in C#, I think it is a good starting point.

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