Click here to Skip to main content
15,900,258 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
"Hi, I would like to know how to convert data from C#.Net to an Excel spreadsheet 2007. I'm very very new to C#.Net. But its this project i am working on. Need urgent help.An example would be appreciated. Thanks."
Posted

"FYI, i am just a trainee. I was assigned to complete this task. I have no idea whatsoever about C#.Net."

If you're a 'trainee' then you should be getting trained, not given tasks you have no idea how to do. It is INSANE that you are being given this when you admit to not knowing C# at all. If you're not being paid, does that mean that no-one is being paid for this work, or have you accepted a 'traineeship' which really means an outsourcing firm is charging for your time and expecting you to use this site to learn C#, that is, they make money and give you nothing in return ? I'd quit a job like that, and instead buy some C# books and read them.

As it happens, it turns out that everything I said appears to be correct. Nevertheless, I told you how to solve the problem. The only issue is, if you don't know anything about C#, what you need is for someone to actually write all the code for you. I won't do that, I won't support a system that robs you, robs the people paying for code, and makes someone rich for doing nothing, basically.
 
Share this answer
 
wrote:
I'm very very new to C#.Net. But its this project i am working on


Please don't tell me you're one of these disgraceful people in the third world who take paid work when they have no idea what they are doing, and expect us to do their job for them ?

If you're new to C#, then you should be learning and not writing code people will use. You should learn C# before you start to learn how to interop with other programs such as the interface offered to work with Excel. However, you can create a file Excel will open, by creating a CSV, or you can use Office Interop to create a proper Excel file.
 
Share this answer
 
FYI, i am just a trainee. I was assigned to complete this task. I have no idea whatsoever about C#.Net. I was just assigned to complete it!And I'm NOT being paid!! So this site has been created to 'help' people in need not to put them down. I need advice not anything else. I suggest you post ur 'advice' somewhere else where people of that sort need it.
Thanks anyway.
 
Share this answer
 
v2
You can use Office Introp as Christian suggested, NPOI is another alternative (google for it), or one of the Open XML implementations (or your own) if you only need Office 2007 compatability.
 
Share this answer
 
I dont have the time to absorb everything within the next 2 weeks. I dont think you understand the situation I am in. I have tried my best to do whatever research online about this. Besides there's no one to ask around here thats why I turned to this site. If you can't help then please forget it, let someone else help. I don't need a lecture right now! I'm in a rush to complete something and I intend to do it appropriately. Thank you for your time.
 
Share this answer
 

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