PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WEBDEV 2024
→
Accessing outlook via WebDev-12 Application
Accessing outlook via WebDev-12 Application
Started by Shahine, Aug., 21 2008 4:19 PM - No answer
Connect yourself…
Shahine
#1
Posted on August, 21 2008 - 4:19 PM
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
Report
0
0
→ Go back to WEBDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text