How can we access .pst file information in VB.NET

M

Mamatha

Hi

I have a doubt,how to know the information of .pst file?
I want to display the information of pst file (which is
maintained by the outlook express) in VB.NET form.When i
click a button in VB.NET then i want to display all
information like,how emails sent,how many emails received
and total messages etc.
If you know the solution please let me know because i am
new to know how can we maintain information of outlook
express.

Thanks&Regards
Mamatha
 
H

Herfried K. Wagner [MVP]

Mamatha said:
I have a doubt,how to know the information of .pst file?
I want to display the information of pst file (which is
maintained by the outlook express)

Outlook Express uses DBX files, not PST files. PST files are used by
Outlook.
 
J

Jay B. Harlow [MVP - Outlook]

Mamatha,
As Herfried stated. Outlook uses PST files, Outlook Express uses DBX files.

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top