Re: Access to data in Outlook connected to Exchange
From: Andrei P. (andrei_at_gbsinc.com)
Date: 03/12/04
- Previous message: Dave Mills [MVP]: "Re: Conn.Open iMbx.BaseFolder <-- breaks here"
- In reply to: Michael Lorio [anyWARE AG]: "Re: Access to data in Outlook connected to Exchange"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 12 Mar 2004 16:10:12 -0700
Thanks, Michael.
I did not logon to a session.
The code works fine with just Outlook (without Exchange):
With g_oApplication.GetNamespace("MAPI")
Set oItem = .GetItemFromID(sOutlookEntryID)
End With
And even if I add:
Call .Logon(<User>, <Password>)
it does not make a difference.
Pointing to store does not make a difference as well:
Set oItem = .GetItemFromID(sOutlookEntryID, sStoreID)
Everything works fine without Exchange.
The error "Could not open the item. Try again." does not tell much.
Does anybody have any idea where else to dig?
"Michael Lorio [anyWARE AG]" <mlnews@anyware-online.de.nospam> wrote in
message news:%236MRLj1BEHA.1600@tk2msftngp13.phx.gbl...
> Might it be possible that you did not logon to mapi? (mapisession)
>
> --
> Mit freundlichen Grüßen,
> Michael Lorio [MCSE]
>
> __________________________________________________________________
> anyWARE AG Tel: +49 6131 965 9650
> Holzstraße 32 Fax: +49 6131 965 9655
> 55116 Mainz Mail: michael.lorio@anyware-online.de
> http: www.anyware.ag
>
> "Andrei P." <andrei@gbsinc.com> schrieb im Newsbeitrag
> news:OoPZEAtBEHA.464@TK2MSFTNGP11.phx.gbl...
> > We have an application with Outlook-like Calendar, Tasks and Contacts. I
> > have developed a routine to synchronize these items from our application
> > with Outlook data. Everything works fine when Outlook is not connected
to
> > Exchange.
> > But when we use Exchange, the statement (VB6):
> > objNameSpace.GetItemFromID(strOutlookID)
> > returns an error:
> > "Could not open the item. Try again."
> > strOutlookID contains EntryID from Contacts and definitely exists.
> >
> > The error comes up with both Outlook 2000 and 2003.
> > I am new to Exchange (actually SBS 2003).
> > Could anybody point me what parameters may be changed in Outlook and/or
> > Exchange to fix the problem.
> >
> >
>
>
- Previous message: Dave Mills [MVP]: "Re: Conn.Open iMbx.BaseFolder <-- breaks here"
- In reply to: Michael Lorio [anyWARE AG]: "Re: Access to data in Outlook connected to Exchange"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|