work with Office 2000 under C#.NET 2003

.net , csharp Ukraine
  • 13 years ago
    hello all!
    i have the following problem. i have a C#.NET 2003 form, that lets me work with Word and Excel Docs. Writing this under Office 2003 and Office Xp I had no problems. When i need to do the same for the Office 2000 they have appeared.
    So i created my program on a PC1, where .NET is installed, and Office XP PIAs too. i have selected the Microsoft Office Object Library 9.0 from the list of the COM objects, and have corrected my previous code (that worked for Office XP) for Office 2000 (number of parameters for Documents.Open (...) function e.g.). afterwards i created the setup project and launched it on the PC2, where Office 2000, .net Framework are installed. my program works fine, but when i press button1, that opens word document and does dmth with it, i get this message: Query Interface for interface Word._Application failed.
     with Office XP it was rather easy. I have found Office XP PIAs on Microsoft Site, and have done everything following the given instructions (i mean instruction as how to create the Setup project and let this work on the PC2 after just installing the program).
    i would be very pleased and thankful to get answer from you because i need to solve this problem with office 2000.
    Thanx in advance,

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“The question of whether computers can think is just like the question of whether submarines can swim.” - Edsger W. Dijkstra