Click here to Skip to main content
16,022,542 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi does any body can help in export to excel in c# using excel package
Posted
Comments
HansRios 18-Aug-17 3:28am    
Wayne suggested using microsoft excel's office interop in c# which I don't believe to be a better choice. I mean if you think about it, with it you're actually running the MS Excel application itself in order to process your files and that is quite an overhead...
Instead I would go with this approach for exporting to Excel with C#.

You don't really need a package. You can just use the Microsoft Interop Assemblies from Microsoft.Office.Interop.Excel[^], or if you know that Excel will not be installed on the client machine, you should use ADO.Net, of which you can find an excellent tutorial here How To Use ADO.NET to Retrieve and Modify Records in an Excel Workbook [^]. That tutorial is in VB, but I'm sure you can do the work around.

Hope this helps
 
Share this answer
 
The home page for the Excel package here ... ExcelPackage: Office Open XML Format file creation[^]

The site contains many useful links, see here[^]

Here one link from the above link
Server-Side Creation of Excel 2007 Files Using .NET 3.0 and Office Open XML[^]
 
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