Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Trying to open an existing Excel file in C#

I am using Microsoft.Office.Interop.Excel namespace with C# in .net
2003. My issue is that when I try to open an Excel file using:

Excel.ApplicationClass xlApp = new
Microsoft.Office.Interop.Excel.ApplicationClass();

xlApp.Workbooks.Open("Filename here");

The open method does not have an overload that only takes one
parameter. The definition I recieve is:
"Microsoft.Office.Interop.Excel.Workbook Workbooks.Open(string
Filename, object UpdateLinks, object ReadOnly, object Format, object
Password, object WriteResPassword, object IgnoreReadOnlyRecommended,
object Origin, object Editable, object Notify, object Converter,
object AddToMru, object Local, object CorruptLoad)"
which is a little much in my opinion. I have looked on msdn and found
an example that used the same method with just a string filename. I
have found similar examples on other sites as well, but they use the
same implimentation. Any help would be greatly appreciated.
-AJ
Reply
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
How do I prevent Excel trying to open a non-existing file at start Jesperfect Excel Discussion (Misc queries) 0 May 15th 09 01:11 PM
User replaces existing file with blank during file open sjs Excel Discussion (Misc queries) 3 August 18th 08 06:16 PM
cannot open an existing file in excel 2003 chughes Excel Discussion (Misc queries) 3 March 2nd 07 12:46 PM
Open an existing excel speadsheet, opens Excel but not the file?? Smeeta Geary Excel Discussion (Misc queries) 1 September 19th 05 03:28 PM
Open existing Excel file Bill Coupe Excel Discussion (Misc queries) 3 January 18th 05 07:53 PM


All times are GMT +1. The time now is 01:14 PM.

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

About Us

"It's about Microsoft Excel"