M
Mark Allsop
Hi,
I have a C# program, written using VS.NET 2003, which automates Word & Excel
to perform some tasks for me. I previously had it working with the Office XP
primary interop assembly. The code needs to work on machines with both
Office XP & 2003.
I am finding reference errors: when I add a reference to Excel on a PC with
Office 2003, it works on that PC fine. I then open the project on the Office
XP PC, and I get a reference error for Excel & Word.
I presume this is due to the version of the interop assemblies?
How do I add a reference to Word & Excel, which will work on PC's with
either Office XP or 2003?
Can I:
- use the Office XP interop assemblies, without losing functionality
when I'm on an Office 2003 machine?
- use the GAC somehow to just use whichever version is on a particular
PC?
- do I have to code to a particular version of Office?
- are the Office 2003 interop assemblies backward compatible? (ie. load
the Office 2003 interop assemblies onto a machine with Office XP?)
Any tips would be most appreciated.
Thanks,
+Mark.
I have a C# program, written using VS.NET 2003, which automates Word & Excel
to perform some tasks for me. I previously had it working with the Office XP
primary interop assembly. The code needs to work on machines with both
Office XP & 2003.
I am finding reference errors: when I add a reference to Excel on a PC with
Office 2003, it works on that PC fine. I then open the project on the Office
XP PC, and I get a reference error for Excel & Word.
I presume this is due to the version of the interop assemblies?
How do I add a reference to Word & Excel, which will work on PC's with
either Office XP or 2003?
Can I:
- use the Office XP interop assemblies, without losing functionality
when I'm on an Office 2003 machine?
- use the GAC somehow to just use whichever version is on a particular
PC?
- do I have to code to a particular version of Office?
- are the Office 2003 interop assemblies backward compatible? (ie. load
the Office 2003 interop assemblies onto a machine with Office XP?)
Any tips would be most appreciated.
Thanks,
+Mark.