LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default creating Excel Application Object in C#?

Can someone tell me how to create an Excel Application object in C#? I can
create a Word and PowerPoint Application object, but when I try to create one
for Excel, I get the build error:

"Cannot create an instance of the abstract class or interface 'interface'"

After adding the appropriate references, I use the following code to create
a Word and PowerPoint Application object:

Word.Application wdApp = new Word.Application();

PowerPoint.Application ppApp = new PowerPoint.Application();

But when I try it with Excel,

Excel.Application xlApp = new Excel.Application();

I get the build error I showed above.

I've searched VS help and MSDN and haven't found any examples that do what
I'm trying to do.

I have references to:
Excel
Microsoft.Office.Core
Office

in my project. Is there some other reference I need?

Thanks!

BTW, I'm on a boat in the middle of the Atlantic for the next two weeks and
I'm using a very slow satelitte connection that's costing me $42/hr. If I
sent this to the wrong newsgroup, could you please forward it to the right
one for me so I don't have to waste connect time? Thanks!

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot start the source application for this object in excel Philip Mollica Charts and Charting in Excel 3 May 27th 06 02:46 AM
Excel Automation Add-In, Accessing the application object smedcalf Excel Programming 1 March 10th 05 09:10 PM
"Excel.Application" Object Model Shaker Charts and Charting in Excel 2 January 9th 05 10:24 AM
Problem on the ASP using the Excel.Application Object David Huang Excel Programming 0 April 23rd 04 02:07 AM
Diplaying Excel Application through Object Model Bob Phillips[_5_] Excel Programming 1 August 13th 03 03:39 PM


All times are GMT +1. The time now is 11:30 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"