473,396 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

.NET / Excel automation - MissingMethodException: Method not found

I am making a Windows EXE (.NET Visual Basic Windows Application).
I would like to make it possible to open Excel Worksheets from my EXE.
This should work independent of Excel version on client machine (it is out
of my control to know what versions of Excel different users has.)
Anyway let us say that Excel 2000 is the oldest acceptable version.
I build the EXE on a PC with Excel 2000. But I it is not working on an Excel
2003 machine!

On my development machine I have "Microsoft Excel 2000 (9.0.6926 SP-3)".
when I do "Add Reference"/"COM", in Visual Studio, a reference is done to
"Microsoft Excel 9.0 Object Library".
When I run the executable on this machine it works perfectly.

But when I try to run it on another development machine with "Microsoft
Office Excel 2003 (11.6355.6360) SP1" i get error message:

System.MissingMethodException: Method not found: Excel.Workbook
Excel.Workbooks.Open(System.String, System.Object, System.Object,
System.Object, System.Object, System.Object, System.Object, System.Object,
System.Object, System.Object, System.Object, System.Object, System.Object).

Following information is not a part of the problem description, but anyway...
IF I instead build the solution on my "Excel 2003"-development machine, then
of course excel automation is working on this machine.
A reference to "Microsoft Excel 11.0 Object Library", is then done.

Any hint is appreciated!

Best regards,
Benjamin
Nov 22 '05 #1
2 4846
Hi

I reviewed the thread and find that there is a similar issue in the
newsgroup below.Now I have replied to you, you may go and take a look.
Subject: .NET / Excel automation - MissingMethodException: Method not found
Newsgroups: microsoft.public.office.developer.automation

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 22 '05 #2
Please see the solution here:
"Achieving Backward Compatibility with .NET Interop: Excel as Case Study"
http://www.devcity.net/Articles/163/1/article.aspx
--

"Benjamin" wrote:
I am making a Windows EXE (.NET Visual Basic Windows Application).
I would like to make it possible to open Excel Worksheets from my EXE.
This should work independent of Excel version on client machine (it is out
of my control to know what versions of Excel different users has.)
Anyway let us say that Excel 2000 is the oldest acceptable version.
I build the EXE on a PC with Excel 2000. But I it is not working on an Excel
2003 machine!

Any hint is appreciated!
Jul 11 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Sarah | last post by:
Hello. I am using Microsoft.Office.Interop.Excel in a C# .NET project. I want to open an Excel application with a specific file name. I am currently opening it with this code: ...
1
by: Benjamin | last post by:
I am making a Windows EXE (.NET Visual Basic Windows Application). I would like to make it possible to open Excel Worksheets from my EXE. This should work independent of Excel version on client...
3
by: Otie | last post by:
I found the following under the GetObject help notes and in the example for GetObject: "This example uses the GetObject function to get a reference to a specific Microsoft Excel worksheet...
1
by: barma16 | last post by:
I've hit a bit of a brick wall here, and could use some advice. I have an Access application whose output is a four-tab Excel spreadsheet where three of the four tabs are the result of database...
6
by: Matthew Wieder | last post by:
I have the following requirements: Build a stand-alone C# application that asks the user to click in a cell in an Excel spreadsheet, and then displays the address of that cell in the C#...
3
by: Vagabond Software | last post by:
Scenario: The end-user selects File-Save from my applications (WinForm) menu, specifies a filename, and waits waits for my app to write the contents of a dataset to an Excel workbook. The...
6
by: a.theil | last post by:
Please help! I need a simple excel automation, just 2 write some files into excel. I do: Dim oXL As Excel.Application Dim oWB As Excel.Workbook Dim oSheet As Excel.Worksheet Dim oRng As...
6
by: Darrell Wesley | last post by:
A VB2003 application upgraded to VB2005 that builds an Excel spreadsheet. Everything appears to work correctly except that the Excel object does not go away it is still in the Process list in task...
6
by: Mark Rae | last post by:
Hi, My client has asked me to provide a "quick and dirty" way to export the contents of a DataGrid to both Excel for analysis and Word for editing and printing, so I'm investigating client-side...
3
by: Tim Marsden | last post by:
Hi, I am currently creating an instance of Excel using VB.NET Automation. dim xl as Excel.Application xl = new Excel.Application However, how can I have more control over the starting of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.