This project has moved. For the latest updates, please go here.

Error while using Excel

Apr 14, 2014 at 6:33 PM
Hi team,
I am getting error when it tries to create excel using Netoffice. It is working in my local but when I deploy it to the server I am getting below error. Can anybody please help me.

System.ArgumentException: progId not found. Excel.Application
Coordinator
Apr 14, 2014 at 7:06 PM
typical is(progId not found. means microsoft excel is not present(not installed) on this system.
you have 2 options now:

a) Make sure excel is present(installed). (if you try accessing from an asp.net application, let me know)
b) create and manipulate an excel file directly(without excel). since 2007 its very easy. Excel use an open xml file format. The Closed XML project(https://closedxml.codeplex.com/) available on codeplex, is very easy to use. Just give'm a try,

hope it's helpful
*sebastian
Apr 14, 2014 at 7:25 PM
Thank You Sebastian, yes I am using asp.net to build this, I cannot install excel because it is server where I don't have access.
Apr 14, 2014 at 7:47 PM
Hi Sebastian,
Can I create multiple sheets in one book using Closed XML?
Coordinator
Apr 15, 2014 at 9:04 PM
of course, its possible with ClosedXML.

about the server situation:
this thread is may helpful for you. (check the link in last posting)
https://netoffice.codeplex.com/discussions/471485

*Sebastian