Referencing the Office XP PIAs
- In the Solution Explorer window, Right click References. Click the Add Reference and the Add Reference dialog box appears.
- Click the COM tab.
- Select the Microsoft Outlook 10.0 Object Library entry in the list of COM type libraries.
- Click Select to select the Outlook object library entry.
- Click OK to add the reference.
- In the Solution Explorer window, in the References folder, click the Outlook reference.
- In the Properties window, notice that the Path property is set to a string similar to C:\WINDOWS\assembly\GAC\Outlook\...\Microsoft.Office.Interop. Outlook.dll. This indicates that the Outlook PIA is being used instead of forcing Visual Studio .NET to create its own COM interop assembly in your project's location.
No comments:
Post a Comment