![]() |
| If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|||||||
| Tags: outlook, vbnet |
|
|
|
Thread Tools | Display Modes |
|
#11
|
|||
|
|||
|
Thank you.
How can I check if the the PIA is installed in the GAC ? "Ken Slovak - [MVP - Outlook]" wrote in message ... A PIA is what is used to provide an interface between a COM component and the managed code. The GAC (global assembly cache) is where PIA's are stored. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "fniles" wrote in message ... Thank you for your reply. What is Outlook PIA ? What is GAC ? Thanks |
| Ads |
|
#12
|
|||
|
|||
|
Open Windows Explorer and navigate to C:\Windows\Assembly. That's the GAC
folder. Microsoft.Office.Interop.Outlook is the Outlook PIA and Microsoft. The Office PIA is just "office". -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "fniles" wrote in message ... Thank you. How can I check if the the PIA is installed in the GAC ? |
|
#13
|
|||
|
|||
|
Thank you.
In both old and new machines, in the folder C:\Windows\Assembly, I do see Microsoft.Office.Interop.Outlook and the version is 11.0.0.0. In VB.NET, to add the Outlook reference, I go to the COM tab and I select "Microsoft Outlook 11.0 Object Library", is that correct ? After that, in the new machine I still can not see "Outlook" when I do "dim x as new ...." How can I fix it ? Thank you. "Ken Slovak - [MVP - Outlook]" wrote in message ... Open Windows Explorer and navigate to C:\Windows\Assembly. That's the GAC folder. Microsoft.Office.Interop.Outlook is the Outlook PIA and Microsoft. The Office PIA is just "office". -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "fniles" wrote in message ... Thank you. How can I check if the the PIA is installed in the GAC ? |
|
#14
|
|||
|
|||
|
Aside from adding the PIA reference you have to refer to it one of two ways,
depending on how you set up your code. If you use something like this: Imports Outlook = Microsoft.Office.Interop.Outlook You can use statements like this: Dim mail As Outlook.MailItem If you don't use an Imports statement then you would declare mail like this: Dim mail As Microsoft.Office.Interop.Outlook.MailItem -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "fniles" wrote in message ... Thank you. In both old and new machines, in the folder C:\Windows\Assembly, I do see Microsoft.Office.Interop.Outlook and the version is 11.0.0.0. In VB.NET, to add the Outlook reference, I go to the COM tab and I select "Microsoft Outlook 11.0 Object Library", is that correct ? After that, in the new machine I still can not see "Outlook" when I do "dim x as new ...." How can I fix it ? Thank you. |
|
#15
|
|||
|
|||
|
Thank you !
The following fixed my problem: Imports Outlook = Microsoft.Office.Interop.Outlook Thanks again for all your help ! "Ken Slovak - [MVP - Outlook]" wrote in message ... Aside from adding the PIA reference you have to refer to it one of two ways, depending on how you set up your code. If you use something like this: Imports Outlook = Microsoft.Office.Interop.Outlook You can use statements like this: Dim mail As Outlook.MailItem If you don't use an Imports statement then you would declare mail like this: Dim mail As Microsoft.Office.Interop.Outlook.MailItem -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "fniles" wrote in message ... Thank you. In both old and new machines, in the folder C:\Windows\Assembly, I do see Microsoft.Office.Interop.Outlook and the version is 11.0.0.0. In VB.NET, to add the Outlook reference, I go to the COM tab and I select "Microsoft Outlook 11.0 Object Library", is that correct ? After that, in the new machine I still can not see "Outlook" when I do "dim x as new ...." How can I fix it ? Thank you. |
|
| Thread Tools | |
| Display Modes | |
|
|