ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   tlbimp vs. primary in VS project file (https://www.excelbanter.com/excel-programming/402699-tlbimp-vs-primary-vs-project-file.html)

Joannes Vermorel

tlbimp vs. primary in VS project file
 
I am currently writing an Excel COM addin. It works well with Excel
2003, but somehow fails to load under Excel 2007.Here is the snippet,
extracted from the VS project file.

<ItemGroup
<COMReference Include="Microsoft.Office.Core"
<Guid{2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}</Guid
<VersionMajor2</VersionMajor
<VersionMinor3</VersionMinor
<Lcid0</Lcid
<WrapperTooltlbimp</WrapperTool
<IsolatedFalse</Isolated
</COMReference
</ItemGroup

Notice that I am using "tlbimp". When, I recompile the project with
'primary', aka

<ItemGroup
<COMReference Include="Microsoft.Office.Core"
<Guid{2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}</Guid
<VersionMajor2</VersionMajor
<VersionMinor3</VersionMinor
<Lcid0</Lcid
<WrapperToolprimary</WrapperTool
<IsolatedFalse</Isolated
</COMReference
</ItemGroup

It seems to work under Excel 2007.

I am not sure to understand what happens here. Does someone has an
explanation?

Thanks in advance,
Joannès
http://www.lokad.com sales forecasting


All times are GMT +1. The time now is 12:18 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com