Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Notes object model ( accessing Address book through COM
Message
 
 
À
16/09/2001 23:39:19
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00557145
Message ID:
00557223
Vues:
17
Dejan,
You have the Lotus.NotesSession line commented out. This is the better COM object to use because Lotus added some extra features to its object model as of version 5.0c. The Lotus.NotesSession object gives you the ability to initialize a Notes session without the interface prompting for a password. You create the boject and then call the Initialize method with the password for the currently configured ID file. This stars the session and the entire Notes session is done "under the covers" so you don't see anything.

HTH.

>Hi Ariel,
>
>I saw your thread regarding accessing Lotus Notes Address book from VFP as i am looking something similar to do with Notes.
>I want to loop through Notes Address book ( i.e. Contacts ) and read the values like FirstName, lastName, MobilePhoneNumber etc..
>I find out lObject = GetNextDocument(DomDoc) skips to next document( record ).
>
>
>Domsession = createobject("Notes.Notessession")
>*Domsession = createobject("Lotus.Notessession")
>DomDir = Domsession.GetDatabase("","names.nsf")
>DomContacts = DomDir.GetView("People")
>DomDoc = DomContacts.GetFirstDocument()
>DomItem = DomDoc.GetFirstItem("LastName")
>if vartype(DomItem) = "O"
>?DomItem.text && this will print Lastname from Contacts
>* StrName = DomItem.Value(0) && this gives error
>endif
>DomItem = DomDoc.GetFirstItem("FirstName")
>?DomItem.text && prints firstname
>
>Just one more thing.
>When I run this code it opens up Notes in the background. Is there a way i don't see this.
>
>
>
>Regards
>
>
>Dejan Jocic
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform