M
Michael
Our team is writing code that automates Word, Excel, PowerPoint and Outlook
using the Office 2003 PIA's, since we want to be compatible with both Office
2003 and Office 2007. Until now, all developers have had Visual Studio 2005
Professional and Office 2003. Some of us will be upgrading to Office 2007
to test and fix bugs that occur there, but we are not yet writing any code
specific to Office 2007. Eventually we expect to have developers who have
never had Office 2003 on their systems as well.
Our first guinea pig uninstalled Office 2003 and installed Office 2007 as
well as the Office 2007 PIA's (Office 2003 PIA's still installed). Now his
references to the Office 2003 PIA's are broken and we're not sure what to
do.
The only suggestion we've found is documented here:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1197009&SiteID=1
Basically, it suggests adding a reference directly to the GAC paths (e.g.
C:\WINDOWS\assembly\GAC\Microsoft.Office.Interop.Excel\11.0.0.0__71e9bce111e9429c\Microsoft.Office.Interop.Excel.dll).
It seems unnatural to go to these lengths. We're wondering if there are
other solutions, or if this solution will even work while still maintaining
compatibility for Office 2003 and Office 2007 users.
Michael
using the Office 2003 PIA's, since we want to be compatible with both Office
2003 and Office 2007. Until now, all developers have had Visual Studio 2005
Professional and Office 2003. Some of us will be upgrading to Office 2007
to test and fix bugs that occur there, but we are not yet writing any code
specific to Office 2007. Eventually we expect to have developers who have
never had Office 2003 on their systems as well.
Our first guinea pig uninstalled Office 2003 and installed Office 2007 as
well as the Office 2007 PIA's (Office 2003 PIA's still installed). Now his
references to the Office 2003 PIA's are broken and we're not sure what to
do.
The only suggestion we've found is documented here:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1197009&SiteID=1
Basically, it suggests adding a reference directly to the GAC paths (e.g.
C:\WINDOWS\assembly\GAC\Microsoft.Office.Interop.Excel\11.0.0.0__71e9bce111e9429c\Microsoft.Office.Interop.Excel.dll).
It seems unnatural to go to these lengths. We're wondering if there are
other solutions, or if this solution will even work while still maintaining
compatibility for Office 2003 and Office 2007 users.
Michael