Click here to Skip to main content
15,896,915 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi ,

I am developing a c# console application which should create an excel document by extracting the data from DB and sends as an excel attachment. As excel is not installed in the server and there is no option for any other open source softwares I am planning to create a gridview and convert it as excel. As I searched in the google most of them are saying that we cant create a gridview in console but I have seen the code once in some forum which I am unable to find now.

Can any one advise me whether I can implement the gridview in console using C#.

Thanks In Advance
Prashant
Posted
Comments
Ron Beyer 9-Dec-13 23:20pm    
Can I ask why you can't use open source or third party software?

1 solution

I would suggest you to use EPPlus for excel export.. It's just a dll that you need to reference with your project so I dont think theres a problem with that.
 
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