Solved

Microsoft Excel Interop

Posted on 2014-02-21
3
420 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Raise the IQ of Your IT Alerts

From IT major incidents to manufacturing line slowdowns, every business process generates insights that need to reach the people required to take action. You need a platform that integrates with your business tools to create fully enabled DevOps toolchains.

You need xMatters.

Question has a verified solution.

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

After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
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…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…

691 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