Solved

Microsoft Excel Interop

Posted on 2014-02-21
3
408 Views
Last Modified: 2014-02-24
I have tried to set up an application on a server that is using microsoft excel interop.  When trying to do the installation I get errors relating to entry points.  I installed Office on the server to test whether it is related to libraries.  The installation worked but I cannot leave office on the server.  

Does anyone know what libraries or other factors I need to include or be aware of when installing excel interop as part of a VB installation
0
Comment
Question by:Alyanto
3 Comments
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 400 total points
ID: 39877287
To use interop, you need to install the software. You cannot just copy some DLLs.

What are you trying to do? Read Excel file? Create some?

To read simple files, check http://emoreau.com/Entries/Articles/2013/07/A-free-LINQ-to-Excel-and-CSV-provider.aspx

If you need to create files, check http://emoreau.com/Entries/Blogs/2009/01/Another-way-to-manipulate-Excel-files.aspx
0
 
LVL 36

Assisted Solution

by:Miguel Oz
Miguel Oz earned 100 total points
ID: 39878202
I f you can not leave Office installed in the server then you can not use Excel Interop.
Excel interop (the one coming in  .NET 4.0) relies on the correct Office version to be installed in your server, For example the interop libray 14.0.0 requires Excel 2010  as shown in the link below:
http://msdn.microsoft.com/en-us/library/ee342218.aspx

If you are planning to have application that does not to use Office then you must change your application to use third party components that do not need Office, for example:
Commercial: (No need to install excel on server)
http://www.gemboxsoftware.com/GBSpreadsheet.htm
Opne source:
https://npoi.codeplex.com/
0
 
LVL 1

Author Closing Comment

by:Alyanto
ID: 39882606
Thank you both your answers lead to a complete solution for me.  

@Eric.  With your blog this link is broken

http://nayyeri.net/blog/use-excelpackage-to-manipulate-open-xml-excel-files/.
0

Featured Post

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question