A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - General Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Tags: ,

Outlook in VB.NET





 
 
Thread Tools Display Modes
  #11  
Old March 5th 08, 11:39 PM posted to microsoft.public.dotnet.languages.vb,microsoft.public.outlook
fniles
external usenet poster
 
Posts: 9
Default Outlook in VB.NET

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  
Old March 6th 08, 03:19 PM posted to microsoft.public.dotnet.languages.vb,microsoft.public.outlook
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 3,736
Default Outlook in VB.NET

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  
Old March 10th 08, 05:15 PM posted to microsoft.public.dotnet.languages.vb,microsoft.public.outlook
fniles
external usenet poster
 
Posts: 9
Default Outlook in VB.NET

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  
Old March 11th 08, 02:02 PM posted to microsoft.public.dotnet.languages.vb,microsoft.public.outlook
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 3,736
Default Outlook in VB.NET

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  
Old March 11th 08, 10:50 PM posted to microsoft.public.dotnet.languages.vb,microsoft.public.outlook
fniles
external usenet poster
 
Posts: 9
Default Outlook in VB.NET

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:49 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Secured Loans - Record Internet Radio with Tags - Dan brown - Credit Card - Scary Optical Illusions