How to Use COM Interop to Create an Excel Spreadsheet

1

I want to create a Microsoft.Office.Interop.Excel.Application object using asp.net. However, when I write the following line, an exception is thrown.

var app = new Microsoft.Office.Interop.Excel.Application();

Error Message:

Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 800702e4 The requested operation requires elevation. (Exception from HRESULT: 0x800702E4).

I have Windows 8 64 Bit platform and Microsoft Office 2007 32 Bit Version. I don't want to remove Microsoft Office and re-install the 64 Bit Version.

I've already tried changing platform target to x86 (In Visual Studio / Project Properties / Build) and done lots of google search.

How can I use the Application object without installing microsoft office (64 bit).

Thanks.

c#
asp.net
excel
com-interop
asked on Stack Overflow Jul 22, 2013 by Bugra Pullu • edited Jul 22, 2013 by Soner Gönül

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0