O
OLeary
Hi,
from my application (C#, .NET 2.0) I write data to an excel table using VBA
objects.
On my developer machine both PIAs for Office 2003 and Office 2007 are
installed in GAC.
Although I add a reference to Microsoft Office 11.0 Object Library from the
COM tabpage, the path in the property window for the created reference shows
this value
C:\WINDOWS\assembly\GAC\Office\12.0.0.0__71e9bce111e9429c\Office.dll
When I now deploy my application to another machine where no Office 2007 is
installed, an error occurs because the office.dll version 12.0 could not be
loaded.
So my question is, how can I force VS, so that a reference to the Office.dll
for version 11.0 is added, which is the version present also on the target
machine ?
Thanks in advance
O'Leary
from my application (C#, .NET 2.0) I write data to an excel table using VBA
objects.
On my developer machine both PIAs for Office 2003 and Office 2007 are
installed in GAC.
Although I add a reference to Microsoft Office 11.0 Object Library from the
COM tabpage, the path in the property window for the created reference shows
this value
C:\WINDOWS\assembly\GAC\Office\12.0.0.0__71e9bce111e9429c\Office.dll
When I now deploy my application to another machine where no Office 2007 is
installed, an error occurs because the office.dll version 12.0 could not be
loaded.
So my question is, how can I force VS, so that a reference to the Office.dll
for version 11.0 is added, which is the version present also on the target
machine ?
Thanks in advance
O'Leary