Click here to Skip to main content
15,906,463 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to connect variable to generated control ? Pin
vgrigor3-Jun-04 4:25
vgrigor3-Jun-04 4:25 
GeneralRe: How to connect variable to generated control ? Pin
Dave Kreskowiak3-Jun-04 4:52
mveDave Kreskowiak3-Jun-04 4:52 
GeneralBest class structure (visually) Pin
Roger Alsing3-Jun-04 0:33
Roger Alsing3-Jun-04 0:33 
GeneralRe: Best class structure (visually) Pin
Stefan Troschuetz3-Jun-04 1:24
Stefan Troschuetz3-Jun-04 1:24 
GeneralRe: Best class structure (visually) Pin
Colin Angus Mackay3-Jun-04 1:33
Colin Angus Mackay3-Jun-04 1:33 
General"Attempt to access invalid address" -problem Pin
EnkelIk2-Jun-04 23:48
EnkelIk2-Jun-04 23:48 
GeneralRe: "Attempt to access invalid address" -problem Pin
EnkelIk2-Jun-04 23:58
EnkelIk2-Jun-04 23:58 
GeneralRe: "Attempt to access invalid address" -problem Pin
Dave Kreskowiak3-Jun-04 4:04
mveDave Kreskowiak3-Jun-04 4:04 
GeneralExcel range limits Pin
the last free name2-Jun-04 23:34
the last free name2-Jun-04 23:34 
GeneralRe: Excel range limits Pin
the last free name3-Jun-04 2:34
the last free name3-Jun-04 2:34 
GeneralBurn with nero Pin
bjoerg742-Jun-04 22:45
sussbjoerg742-Jun-04 22:45 
GeneralMousewheel/Scrollbar questoin Pin
Aaron Eldreth2-Jun-04 17:01
Aaron Eldreth2-Jun-04 17:01 
GeneralRe: Mousewheel/Scrollbar questoin Pin
Stefan Troschuetz2-Jun-04 20:53
Stefan Troschuetz2-Jun-04 20:53 
GeneralRe: Mousewheel/Scrollbar questoin Pin
Aaron Eldreth3-Jun-04 2:45
Aaron Eldreth3-Jun-04 2:45 
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 

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.