Select the product you need help with
BUG: "Old format or invalid type library" error when automating ExcelArticle ID: 320369 - View products that this article applies to. This article was previously published under Q320369 On This PageSYMPTOMS 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 CAUSE You receive this error calling an Excel method when the
following conditions are true:
WORKAROUND 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).aspx Globalization
and Localization Issues for Solutions Created with Microsoft Visual Studio
Tools for the Microsoft Office System
(http://msdn2.microsoft.com/en-us/library/aa168494(office.11).aspx)
http://msdn2.microsoft.com/en-us/library/aa192494(office.11).aspx
(http://msdn2.microsoft.com/en-us/library/aa192494(office.11).aspx)
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section. MORE INFORMATIONSteps to reproduce the behavior
REFERENCES For more information on Office Automation, visit the
following Microsoft Office Development Web site: http://support.microsoft.com/ofd
Additionally, see the following Microsoft Knowledge Base articles:
(http://support.microsoft.com/ofd)
301982
(http://support.microsoft.com/kb/301982/
)
How to automate Microsoft Excel from Visual Basic .NET
302084
(http://support.microsoft.com/kb/302084/
)
How to automate Microsoft Excel from Microsoft Visual C# .NET
PropertiesArticle ID: 320369 - Last Review: December 11, 2009 - Revision: 9.0 APPLIES TO
| Article Translations
|


Back to the top








