Lỗi old format or invalid type library là gì
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: Show Error: 0x80028018 (-2147647512) Description: Old Format or Invalid Type Library CauseYou receive this error calling an Excel method when the following conditions are true:
If the client computer runs the English version of Excel and the locale for the current user is configured for a language other than English, Excel will try to locate the language pack for the configured language. If the language pack is not found, the error is reported. WorkaroundTo 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 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
ReferencesFor 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: 301982 How to automate Microsoft Excel from Visual Basic .NET 302084 How to automate Microsoft Excel from Microsoft Visual C# .NET Need more help?Want more options?Explore subscription benefits, browse training courses, learn how to secure your device, and more. Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge. |