Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How do I prevent Excel trying to open a non-existing file at start | Excel Discussion (Misc queries) | |||
User replaces existing file with blank during file open | Excel Discussion (Misc queries) | |||
cannot open an existing file in excel 2003 | Excel Discussion (Misc queries) | |||
Open an existing excel speadsheet, opens Excel but not the file?? | Excel Discussion (Misc queries) | |||
Open existing Excel file | Excel Discussion (Misc queries) |