Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

e-mail: shamil-usersATmns.ru
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...