FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WEBDEV 2024
→
Accessing outlook via WebDev-12 Application
Accessing outlook via WebDev-12 Application
Débuté par Shahine, 21 aoû. 2008 16:19 - Aucune réponse
Connectez-vous…
Shahine
#1
Posté le 21 août 2008 - 16:19
Hi,
I am trying to read the contact list from Outlook in a WebDev-12 application and display the email addresses in a combo-box.
I have used the following code:
------------------------------
id is Int
email_add is string
profile_name is string
profile_name = "Outlook"
id = OutlookStartSession(profile_name)
IF id = 0 then
Error(ErrorInfo())
ELSE
ContactFirst(id)
ListDeleteAll(Combobox)
WHILE mContact.Out = False
email_add = mContact.Email
ListAdd(Combobox, email_add)
ContactNext(id)
END
END
EmailCloseSession(id)
---------------------------------
This works perfectly on my development pc (Vista SP1), but when I deploy the application to another identical Vista SP1 pc it fails with the error:
Unable to open session with the "Outlook" profile. Invaild window handle. id=0
I have tried it with blank profile name (instead of Outlook). On my development pc I get a list of profiles to choose from. On the destination pc I get the error:
Unable to open session with the "" profile. Invaild window handle. id=0
Is anybody else getting this? Any help will be very much appreciated.
Shahine
Mail@Shahine.co.uk
Signaler
0
0
→ Revenir à WEBDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte