Article ID: 320369 - View products that this article applies to.
This article was previously published under Q320369
If you automate Microsoft Excel with Microsoft Visual Basic .NET, Microsoft Visual C# .NET, or Microsoft Visual C++, you may receive the following error when calling certain methods:
Error: 0x80028018 (-2147647512)
Description: Old Format or Invalid Type Library
You receive this error calling an Excel method when the following conditions are true:
To work around this problem, you can use one of the following methods:
When you use one of these workarounds for a computer where the regional settings do not match the current language version of Office, you should be familiar with how Excel behaves and how Excel will interpret data that might be formatted for a specific locale. For more details about writing globalized Excel solutions with Visual Studio .NET, please see the following articles in the MSDN:
Creating Office Solutions for Use in Multiple Countries/Regions
http://msdn2.microsoft.com/en-us/library/aa168494(office.11).aspxGlobalization and Localization Issues for Solutions Created with Microsoft Visual Studio Tools for the Microsoft Office System
Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section.
Steps to reproduce the behavior
For more information on Office Automation, visit the following Microsoft Office Development Web site:
http://support.microsoft.com/ofdAdditionally, see the following Microsoft Knowledge Base articles:
(http://support.microsoft.com/kb/301982/ )How to automate Microsoft Excel from Visual Basic .NET
(http://support.microsoft.com/kb/302084/ )How to automate Microsoft Excel from Microsoft Visual C# .NET
Article ID: 320369 - Last Review: December 11, 2009 - Revision: 9.0
Contact us for more help
Connect with Answer Desk for expert help.