H
Howard Kaikow
Why cannot MSFT publish correct/updated info in MSDN and KB?
It is to MSFT's advantage to encourage us to migrate old code, and develop
new code, with .NET, so they need to take extra care when publishing
examples for us to follow.
The following is a simple example of such an error.
The MSDN library that ships with VS .NET has an article "creating Office
managed COM Add-ins with visual studio .NET" that demonstrates how to make a
VB .NET COM add-in using Powerpoint.See
ms-help://MS.MSDNQTR.2003FEB.1033/dnofftalk/html/office06062002.htm. The
article is also available the MSDN web site.
Since the article uses Powerpoint 2002, I booted to my system that has
Office XP and VS .NET 2002.
I obediently inserted the code from the article, and was disappointed to
find that I had to change 2 statements.
First, I had to change:
Imports PowerPoint.PpSlideLayout
to
Imports Microsoft.Office.Interop.PowerPoint.PpSlideLayout ' Modified by HK
Then I had to change
Dim objPresentation As PowerPoint.Presentation
to
Dim objPresentation As Microsoft.Office.Interop.PowerPoint.Presentation '
Modified by HK
I then rebooted to my system that has Office 2003 and VS .NET 2003.
Other than replacing the Powerpoint reference, I do not recall further
problems.
It is to MSFT's advantage to encourage us to migrate old code, and develop
new code, with .NET, so they need to take extra care when publishing
examples for us to follow.
The following is a simple example of such an error.
The MSDN library that ships with VS .NET has an article "creating Office
managed COM Add-ins with visual studio .NET" that demonstrates how to make a
VB .NET COM add-in using Powerpoint.See
ms-help://MS.MSDNQTR.2003FEB.1033/dnofftalk/html/office06062002.htm. The
article is also available the MSDN web site.
Since the article uses Powerpoint 2002, I booted to my system that has
Office XP and VS .NET 2002.
I obediently inserted the code from the article, and was disappointed to
find that I had to change 2 statements.
First, I had to change:
Imports PowerPoint.PpSlideLayout
to
Imports Microsoft.Office.Interop.PowerPoint.PpSlideLayout ' Modified by HK
Then I had to change
Dim objPresentation As PowerPoint.Presentation
to
Dim objPresentation As Microsoft.Office.Interop.PowerPoint.Presentation '
Modified by HK
I then rebooted to my system that has Office 2003 and VS .NET 2003.
Other than replacing the Powerpoint reference, I do not recall further
problems.