troubleshooting Question

Fastest way to interface between Excel data and C# objects

Avatar of jw_pr
jw_pr asked on
.NET ProgrammingOffice Productivity
19 Comments1 Solution2422 ViewsLast Modified:
Hi, I want to know what the fastest way is of reading and writing data to and from an open Excel workbook to c# objects.   The background is that I want to develop a c# application that is used from Excel and uses data held in excel.  

The business logic will reside in the c# application but the data will reside in an Excel workbook.  The user will be using Excel and will click a button (or do something similar) on the excel workbook to initiate the c# application.  The c# application will then read data off the excel workbook, process the data, and then write data back to the excel workbook.  
There may be numerous blocks of data that are required to be read off and written back to the excel workbook but they will normally be of a relatively small size, say 10 rows and 20 columns.  Occasionally a large list of data may need to be processed, of the order of 50,000 rows and 40 columns.
I know that this is relatively easy to do say using VSTO but I want to know what the fastest (but still robust and elegant) solution is and get an idea of the speed.   I don't mind if the solution recommends using third party products or uses C++.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 19 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 19 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros