Outlook 2003 through VB.NET
From: Haim (haim_lz_at_hot.com)
Date: 11/01/04
- Next message: Tom Rizzo [MSFT]: "Re: Outlook 2003 through VB.NET"
- Previous message: nYssa: "Getting recipients username from their display name in an appointm"
- Next in thread: Tom Rizzo [MSFT]: "Re: Outlook 2003 through VB.NET"
- Reply: Tom Rizzo [MSFT]: "Re: Outlook 2003 through VB.NET"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 1 Nov 2004 06:31:25 -0800
Hi,
I'm having troubles accessing outlook 2003 from my .NET
windows application VB.NET form.
this is the code I'm using:
Imports Microsoft.Office.Interop
private sub ....
Dim olApp As Outlook.Application
Dim objSearch As Outlook.Search
Dim folInbox As Outlook.MAPIFolder
Try
olApp = New Outlook.Application
folInbox = olApp.GetNamespace
("MAPI").GetDefaultFolder("olFolderInbox")
Catch ex As Exception
MsgBox(ex.Message)
End Try
End sub
the exception is:
"QueryInterface for interface
Microsoft.Office.Interop.Outlook._Application failed."
my reference is to the outlook.dll (Microsoft Outlook
11.0 Object Library)
anybody has a clue as for what am I doing wrong?
- Next message: Tom Rizzo [MSFT]: "Re: Outlook 2003 through VB.NET"
- Previous message: nYssa: "Getting recipients username from their display name in an appointm"
- Next in thread: Tom Rizzo [MSFT]: "Re: Outlook 2003 through VB.NET"
- Reply: Tom Rizzo [MSFT]: "Re: Outlook 2003 through VB.NET"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|