3

I am developing an Application using C#.NET in Window 7. The application generate excel document. In my system, Office 2010 had been installed.

Creating an instance of the COM component with CLSID {00024500-0000-0000-C000-000000000046} from the IClassFactory failed due to the following error: 80010001.

3
  • How does it generate an Excel sheet? Commented Sep 13, 2012 at 9:49
  • i had the same error, and i think it's realted to windows 7 because i tried the same code on XP and it worked (i didn't fix the problem because someone else took it) so i don't know the answer Commented Sep 13, 2012 at 9:53
  • Well, it looks like files are been generated using Office PIAS.. Commented Sep 13, 2012 at 9:57

2 Answers 2

3

You don't provide much information about. It's a web, a windows service or desktop application?

However, using com interop isn't needed any more to create Excel files in the new xml based format. See this:

http://excelpackage.codeplex.com/

Best regards.

Sign up to request clarification or add additional context in comments.

Comments

2

As Oscar have said, using Interop classes is not required for excel-file generation. Even Microsoft says you should not be doing that. There are other packages that can create xls or xlsx files for you. I have used NPOI in the past and was very happy with it.

27 Oct 2015 Update: NPOI has a is horrible API. Use OpenXml-based EPPlus - much more comfortable to work with and gives you a lot better code comparing to NPOI when producing the same documents.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.