HighTechTalks DotNet Forums  

Excel application help

Dotnet Framework (Interop) microsoft.public.dotnet.framework.interop


Discuss Excel application help in the Dotnet Framework (Interop) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
prplvelvet
 
Posts: n/a

Default Excel application help - 10-26-2007 , 06:09 PM






Hi All,

I am trying to open a excel file on a win 2003 server.
The code works fine on my local machine with xp pro, but when I try the same
code on the server I get the following error:

Index (zero based) must be greater than or equal to zero and less than the
size of the argument list.

The error is thrown when trying to instantiate the excel application object
on the following line of code:

Microsoft.Office.Interop.Excel.Application excel = new
Microsoft.Office.Interop.Excel.ApplicationClass();

Excel is installed on my local xp pro machine but not on the server.
The Microsof.Office.Interop.Excel.dll is on the server.

Has anyone seen this?
Any help would be greatly appreciated.
Thanks.


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.