Information générale
Catégorie:
Codage, syntaxe et commandes
Good Morning,
Our Atlanta WINNT server runs MS Exchange server.
This is linked to MS Exchange server on a
Windows NT server in Utah. The Utah
server has the Global address list.
The separate servers do NOT have
a trusted domain set up.
That's probably the problem.
I just found out that we have a
copy of the global address list on our
local public folder on the WINNT server
called 'recipients'.
My network pc is a Win95 box.
I can always access the
Global address list through the
MS Outlook application.
Why won't the code below work?
I get the OLE error:name Global address list
is not found.
Maybe I should use the copy of the
global address list in 'recipients' folder.
But I would have to somehow access the folder,
after the code that reads:
>oFolder = oNs.GetDefaultfolder(10)
> oITEMS=oFolder.items
How would I navigate to the folder using code?
Thank you for the help.
Regards,
Ed Hill
>We want to get all entries in the Microsoft OUTLOOK
>Global address list...
>But the code gives an OLE error on the last line
>because the name Global address list
>is not found. Hmmm? Why can't I get the Global address list object?
>
>Is there a better way to do this?
>
>Ed Hill,
>Atlanta
>
>oOL = CREATEOBJECT("Outlook.Application")
>oNs = oOL.GetNamespace("MAPI")
>oFolder = oNs.GetDefaultfolder(10) && See below for other values
> oITEMS=oFolder.items
>
>numFolder = 0
>NumItems = 0
>
>Dimension aPAB(100, 2)
>
>AddressListName= "Global Address List"
>
>* problem occurs here
>oGAL = oNs.addressLists(AddressListName)
>
>(more code follows, but not included here)
You asked:
Are you running MS Exchange server? You won't have a global address list without it.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement