Shamil Posted November 8, 2003 Posted November 8, 2003 Hi All, I'm getting the following runtime error while trying to set .Visible property to True of successfully created instance of MS Excel: <<< An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in WindowsApplication3.exe Additional information: Old format or invalid type library. >>> I'm automating MS Excel 2000 and as far as I see the reference is set correctly to "Microsoft Excel 9.0 Object Library" and to "Microsoft Office 9.0 Object Library".. the Interop assemblies I have locally in my projects' obj subforlder are the following: Interop.Excel.dll 19.03.1999 20:00 942080 Interop.Office.dll 23.02.2000 02:33 155648 As far as I understand they are generated automatically by VS.Net based on MS Excel and MS Office .OLBs, which I set references to. Why they don't work is a real puzzle for me... Any solution anybody? TIA, Shamil Quote e-mail: shamil-usersATmns.ru
Shamil Posted November 8, 2003 Author Posted November 8, 2003 Problem solved using the information from http://support.microsoft.com/?kbid=320369 Shamil Quote e-mail: shamil-usersATmns.ru
Recommended Posts