Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default HELP:old format or invalid type library

I am trying to write some data to excel 2003 from C#.
I installed windows xp on a machine,visual studio.net and office 2003 from scratch to be sure everything is ok. I also install of course .NET programmability support for the office

I write in C#:

Excel.Application app = new Excel.Application();
app.visible=true;
app.Workbooks.Open("c:/data.xls", System.Reflection.Missing.Value, System.Reflection.Missing.Value, System.Reflection.Missing.Value, System.Reflection.Missing.Value, System.Reflection.Missing.Value, System.Reflection.Missing.Value, System.Reflection.Missing.Value, System.Reflection.Missing.Value, System.Reflection.Missing.Value, System.Reflection.Missing.Value, System.Reflection.Missing.Value, System.Reflection.Missing.Value, System.Reflection.Missing.Value, System.Reflection.Missing.Value)

when i run it the first two lines work good and it goes to Open function a COMException come up telling me "old format or invalid type library", i also tried _Open function but the same thing happened. I f i use an event in the Application object everything works fine. PLEASE HELP

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why does this fail with an invalid type error Benkong2 Excel Programming 3 April 18th 04 01:59 PM
object library invalid succhu Excel Programming 0 March 2nd 04 05:21 PM
MISSING: shappmgrp 1.0 Type Library Gary Bartlett Excel Programming 4 November 29th 03 05:36 PM
MISSING:shappmgrp 1.0 Type Library Gary Bartlett Excel Programming 3 November 29th 03 05:36 PM
mail message 1.0 Type library susie Excel Programming 0 July 21st 03 07:52 PM


All times are GMT +1. The time now is 10:24 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"