.NET Framework Bookmark and Share   
 index > JScript for the .NET Framework > Can I use javascript to get the contact infomation in Outlook Express?
 

Can I use javascript to get the contact infomation in Outlook Express?

I hnow how can get contact infomation in outlook using outlook.application ActiveObject.
but it doesn't work on Outllok Express.
can someone teach me to overcome it.
thanks.
天涯浪子

Hi,

As far as I know, Outlook Express is not an Automation Server. I don't think you can automate Outlook Expess like Outlook.You can programmatically access it through MAPI (the Mail Application Programming Interface). You can try to check out this KB article about"Differences between Outlook and Outlook Express" for details - http://support.microsoft.com/kb/q257824/

For your question, I recommend you trying to post it to"Discussions in Outlook Express General" - http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.outlookexpress.general

Hope this helps,

Regards,

Ji Cheng Wang - MSFT

Hi,

As I understand from your description, you have known how to get contact information from outlook using outlook.application ActiveXObject in javascript. When you want to apply this method to Outlook Express, what's the problem with you? Did you get any exception message? In order to help you solve this problem, please calrify what's the isssue with youwhen using outlook.application ActiveXObject in outlook express. Thanks.

Regards,

Ji Cheng Wang - MSFT
Thanks your reply!
My OS is WinXP with SP2 and installed outlook 2007, the used OE is default installed with OS.
on my machine , the outlook.application ActiveXObject don't interact with OE, it only interact with outlook.
so I want to know if there is another
ActiveXObject to achieve to obtain contact info in OE exigent like outlook.application to work with outlook. it's better if can use outlook.application to achieve it.

In one word, I need a method to obtain the contact infomation in OE use javascript.

below is the code I use to get contact infomation from oulook using
Outlook.Application. but it can't obtain contact infomation in OE. In fact I dno't know how to apply it on OE.

obj = new ActiveXObject("Outlook.Application");
ns = obj.GetNamespace("MAPI");

if( ns )
{
als = ns.AddressLists;
if( als )
{
if( als.count > 0 )
{
al = als.Item(1);
aes = al.AddressEntries;
for( tmpi = 1; tmpi <= aes.Count; tmpi++)
{
ae = aes.Item(tmpi);

emai = ae.Address;
.........
}

}
}
}

need your help exigent. thanks.

天涯浪子

Hi,

As far as I know, Outlook Express is not an Automation Server. I don't think you can automate Outlook Expess like Outlook.You can programmatically access it through MAPI (the Mail Application Programming Interface). You can try to check out this KB article about"Differences between Outlook and Outlook Express" for details - http://support.microsoft.com/kb/q257824/

For your question, I recommend you trying to post it to"Discussions in Outlook Express General" - http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.outlookexpress.general

Hope this helps,

Regards,

Ji Cheng Wang - MSFT
thanks
天涯浪子
Usually I use Exchange for work with mails,but one time I used OE,and something happened...My mails were corrupted.Fortunately myself helped-repair outlook express inbox.It is free as is known,moreover utility is able also keeps user mailboxes in files with dbx extension.
Alex Krenvalk

You can use google to search for other answers

Custom Search

More Threads

• Alertbox title
• Sudden JavaScript errors on ASP.NET page
• Disable keys
• How do I set a table's visible property to false, and with javascript set it back to visible.
• Java script validations
• Arguments for Console Application
• autoscroll
• ECMAScript(Javascript) for XML(E4X) in IE7 BETA 3
• How to Read XML through Javascript
• Linking Javascript to the Asp dot net control