How to retrieve outlook pst file information

  • Thread starter Thread starter Mamatha
  • Start date Start date
M

Mamatha

Hi

I need to know..how to retrieve values of Microsoft
Outlook in VB,i want to retrieve how many emails contains
in my inbox,outbox,sentitems etc.
Please give me the solution for retrieving values of
outlook in VB6.If you know the solution or code,please
help me,thanks in advance.

Mamatha
 
Mamatha said:
I need to know..how to retrieve values of Microsoft
Outlook in VB,i want to retrieve how many emails contains
in my inbox,outbox,sentitems etc.
Please give me the solution for retrieving values of
outlook in VB6.

Please read the answers that were given to your question some days ago if
you want information on how to do that in VB.NET:

<URL:http://groups.google.de/[email protected]>

For VB6, consider posting to one of the groups in the microsoft.public.vb.*
hierarchy.
 
This subject was discussed around 2 months ago in the Outlook Forum.

There are programs on the Internet that read PST files, but the passwords
are held within the file. What happens if the PST file you are trying to read
contains an unknown password?

I agree about the security warnings that the user will receive that cannot
be suppressed, as far as I am aware.

You could try asking your question on the http://www.gotdotnet.com website,
which is also run by Microsoft & has a few Microsoft programmers answering
some of the posts.

Here's a direct link to the VB.NET forum:

http://www.gotdotnet.com/Community/MessageBoard/MessageBoard.aspx?id=8

You will need to register for a FREE account using your passport.
 
Mamatha,
As I stated the other day:

I would recommend using Outlook automation to read the PST. Alternatively
you could use CDO or Extended MAPI to read the PST, however I believe in
both cases you need to have Outlook installed.

NOTE: When you use Outlook Object Model or CDO to read the PST you will get
security prompts as it appears you are harvesting addresses to spam or worst
spread viruses with your friends.

For a list of articles on using Outlook from .NET see:

http://www.microeye.com/resources/res_outlookvsnet.htm

For a plethora of automating Outlook with VBA, VB6, and VBScript see:
http://www.outlookcode.com/

To avoid the Outlook security prompts its generally easiest to create a
properly constructed COM-Addin for Outlook 2003. There are other methods
available for other versions of Outlook...

See:
http://msdn.microsoft.com/library/d...dc_ol2003_ta/html/odc_olsecnotescomaddins.asp

Further info can be found at:
http://www.slipstick.com/dev/ol2003problems.htm
http://www.slipstick.com/outlook/esecup/admin.htm

The links I gave have samples of creating add-ins.

Both of these are good articles to start with:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnout2k2/html/odc_oladdinvbnet.asp

http://support.microsoft.com/?kbid=302896

Also, be certain you have explicitly installed the Outlook PIAs! The Outlook
2003 PIAs are an optional install, while the Outlook XP PIA is a download.

Hope this helps
Jay
 
Back
Top