Click here to Skip to main content
15,896,606 members
Home / Discussions / C#
   

C#

 
GeneralThreading Error Pin
Wackatronic2-Jun-04 15:54
Wackatronic2-Jun-04 15:54 
GeneralRe: Threading Error Pin
flow55552-Jun-04 18:10
flow55552-Jun-04 18:10 
GeneralRe: Threading Error Pin
Stefan Troschuetz2-Jun-04 21:35
Stefan Troschuetz2-Jun-04 21:35 
GeneralRe: Threading Error Pin
Wackatronic3-Jun-04 6:12
Wackatronic3-Jun-04 6:12 
GeneralRe: Threading Error Pin
Stefan Troschuetz2-Jun-04 21:32
Stefan Troschuetz2-Jun-04 21:32 
Questionusing the Visual IDE ? Pin
triso2-Jun-04 13:31
triso2-Jun-04 13:31 
AnswerRe: using the Visual IDE ? Pin
Heath Stewart2-Jun-04 13:39
protectorHeath Stewart2-Jun-04 13:39 
GeneralExcel 2003 interop Pin
Dimitris Iliopoulos2-Jun-04 12:16
Dimitris Iliopoulos2-Jun-04 12:16 
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 when it goes to the Open function a COMException come up telling me "old format or invalid type library", i also tried _Open function but the same thing happened. If i use an event in the Application object everything works fine,it crashes only when i go to the Workbooks property. PLEASE HELP


From Greece:
Dimitris Iliopoulos
dimilio@yahoo.com
GeneralRe: Excel 2003 interop Pin
Heath Stewart2-Jun-04 13:26
protectorHeath Stewart2-Jun-04 13:26 
GeneralRe: Excel 2003 interop Pin
Dimitris Iliopoulos2-Jun-04 22:07
Dimitris Iliopoulos2-Jun-04 22:07 
GeneralRe: Excel 2003 interop Pin
Heath Stewart3-Jun-04 3:45
protectorHeath Stewart3-Jun-04 3:45 
GeneralRe: Excel 2003 interop Pin
Dimitris Iliopoulos3-Jun-04 10:40
Dimitris Iliopoulos3-Jun-04 10:40 
GeneralSound Mixer Control Pin
kratchkov2-Jun-04 10:39
kratchkov2-Jun-04 10:39 
GeneralRe: Sound Mixer Control Pin
Wackatronic2-Jun-04 16:42
Wackatronic2-Jun-04 16:42 
GeneralDataSet not Updating Database Pin
Orville2-Jun-04 10:05
Orville2-Jun-04 10:05 
GeneralRe: DataSet not Updating Database Pin
Heath Stewart2-Jun-04 10:22
protectorHeath Stewart2-Jun-04 10:22 
GeneralRe: DataSet not Updating Database Pin
Orville2-Jun-04 10:36
Orville2-Jun-04 10:36 
GeneralRe: DataSet not Updating Database Pin
Heath Stewart2-Jun-04 10:44
protectorHeath Stewart2-Jun-04 10:44 
GeneralRe: DataSet not Updating Database Pin
Orville2-Jun-04 10:59
Orville2-Jun-04 10:59 
QuestionWant to mouse click a toolbar button? Pin
Anonymous2-Jun-04 9:32
Anonymous2-Jun-04 9:32 
AnswerRe: Want to mouse click a toolbar button? Pin
Heath Stewart2-Jun-04 10:18
protectorHeath Stewart2-Jun-04 10:18 
GeneralRe: Want to mouse click a toolbar button? Pin
Anonymous3-Jun-04 3:34
Anonymous3-Jun-04 3:34 
GeneralDisable auto-incrementing version Pin
Anonymous2-Jun-04 9:31
Anonymous2-Jun-04 9:31 
GeneralRe: Disable auto-incrementing version Pin
Heath Stewart2-Jun-04 9:55
protectorHeath Stewart2-Jun-04 9:55 
GeneralRe: Disable auto-incrementing version Pin
Anonymous2-Jun-04 11:27
Anonymous2-Jun-04 11:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.