473,569 Members | 2,721 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Outlook PST Files

Hello NG,

I would like to read and write Outlook PST-Files with my VB.NET application
natively.
Is there anyone who can help me with this issue? Since PST-Files are "also"
Databases, aren't they?
Maybe there ist a way to do this with an Active Sync API if existing?
Hints with sample are highly appreciated.

B.T.W.
Is there an option to prevent the dialog which say that there is an
application trying to send mails with outlook? I know that the .NET
Frameworks contains a class which is able to send SMTP-Mails, but there not
appearing within Outlook.

Thanks
H. Dederichs
Oct 24 '06 #1
9 14566
Try Googling MAPI. Here's an example of a .NET wrapper for a MAPI class
originally written in C: http://www.codeproject.com/useritems/VBMAPIEx.asp

Here's another one with source code that might be helpful:
http://www.codeproject.com/cs/intern...mapidotnet.asp
"H. Dederichs" <Howie De*******@commu nity.nospamwrote in message
news:eQ******** ******@TK2MSFTN GP05.phx.gbl...
Hello NG,

I would like to read and write Outlook PST-Files with my VB.NET
application natively.
Is there anyone who can help me with this issue? Since PST-Files are
"also" Databases, aren't they?
Maybe there ist a way to do this with an Active Sync API if existing?
Hints with sample are highly appreciated.

B.T.W.
Is there an option to prevent the dialog which say that there is an
application trying to send mails with outlook? I know that the .NET
Frameworks contains a class which is able to send SMTP-Mails, but there
not appearing within Outlook.

Thanks
H. Dederichs

Oct 25 '06 #2
Hi,

So far the outlook PST file format are only understood by Outlook.
Therefore you'll have to use Outlook Automation to access it. In VB.NET,
you can use COM interop to access Outlook Object Model:

Dim oApp As Application = New ApplicationClas s
Dim oStore As MAPIFolder = Nothing
Dim oNS As NameSpace = oApp.GetNamespa ce("MAPI")
oNS.Logon("", "", True, True)
oApp.Session.Ad dStore("f:\data \temp.pst")
Dim oneStore As MAPIFolder
For Each oneStore In oNS.Folders
If (oneStore.Name. ToString Is "Personal Folders") Then
oStore = oneStore
Exit For
End If
Next

As for the security dialog, you can refer to following KB on how to
configure it:

#Administrator information about e-mail security features
http://support.microsoft.com/kb/290499

However, you will need to work in Exchange Server environment to apply this
method.

Regarding .NET Framework 2.0 SMTP class, it's not using MAPI, so its sent
mail will not shown in outlook.

Sincerely,
Walter Wang (wa****@online. microsoft.com, remove 'online.')
Microsoft Online Community Support

=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications. If you are using Outlook Express, please make sure you clear the
check box "Tools/Options/Read: Get 300 headers at a time" to see your reply
promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====

This posting is provided "AS IS" with no warranties, and confers no rights.

Oct 25 '06 #3
"H. Dederichs" wrote:
Is there an option to prevent the dialog which say that there is an
application trying to send mails with outlook? I know that the .NET
Frameworks contains a class which is able to send SMTP-Mails, but there not
appearing within Outlook.
You could use Outlook Redemption:
http://www.dimastr.com/redemption/
Oct 25 '06 #4
Hallo Mike,

thank you for your hint. It was a good starting point.
I also found Outlook Redemption today which is also good for, esoecially
since it covers nearly the complet MAPI function.

Regards
Herbert Dederichs

"Mike C#" <xy*@xyz.comsch rieb im Newsbeitrag
news:ba******** ******@newsfe11 .lga...
Try Googling MAPI. Here's an example of a .NET wrapper for a MAPI class
originally written in C:
http://www.codeproject.com/useritems/VBMAPIEx.asp

Here's another one with source code that might be helpful:
http://www.codeproject.com/cs/intern...mapidotnet.asp
"H. Dederichs" <Howie De*******@commu nity.nospamwrote in message
news:eQ******** ******@TK2MSFTN GP05.phx.gbl...
>Hello NG,

I would like to read and write Outlook PST-Files with my VB.NET
application natively.
Is there anyone who can help me with this issue? Since PST-Files are
"also" Databases, aren't they?
Maybe there ist a way to do this with an Active Sync API if existing?
Hints with sample are highly appreciated.

B.T.W.
Is there an option to prevent the dialog which say that there is an
application trying to send mails with outlook? I know that the .NET
Frameworks contains a class which is able to send SMTP-Mails, but there
not appearing within Outlook.

Thanks
H. Dederichs



Oct 25 '06 #5
Hello Leon,

I also found Outlook Redemption today. Seems to be the thing I was looking
for.
Do you know how to send Email without starting Outlook via Automation (only
RDO)? Documentation and samples are not very detailed on the site.

Thanks
Herbert Dederichs

"Leon Mayne" <Le*******@disc ussions.microso ft.comschrieb im Newsbeitrag
news:03******** *************** ***********@mic rosoft.com...
"H. Dederichs" wrote:
>Is there an option to prevent the dialog which say that there is an
application trying to send mails with outlook? I know that the .NET
Frameworks contains a class which is able to send SMTP-Mails, but there
not
appearing within Outlook.

You could use Outlook Redemption:
http://www.dimastr.com/redemption/

Oct 25 '06 #6
"H. Dederichs" wrote:
Do you know how to send Email without starting Outlook via Automation (only
RDO)? Documentation and samples are not very detailed on the site.
Not sure, I'm afraid. I've only used redemption from either a VB6 COM addin
or a macro, and so Outlook is already loaded for both situations.

If you want to send stuff completely outside of Outlook then I'd look
elsewhere. There are lots of third party components that will email
regardless of Outlook being installed.
Oct 25 '06 #7

"""Leon Mayne ÐÉÓÁÌ(Á):
"""
"H. Dederichs" wrote:
Do you know how to send Email without starting Outlook via Automation (only
RDO)? Documentation and samples are not very detailed on the site.

Not sure, I'm afraid. I've only used redemption from either a VB6 COM addin
or a macro, and so Outlook is already loaded for both situations.

If you want to send stuff completely outside of Outlook then I'd look
elsewhere. There are lots of third party components that will email
regardless of Outlook being installed.

http://pstwalker.narod.ru/

Nov 7 '06 #8
Thats an Exe that does wht i wanna do.. Can I get the Source Code Please..

EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com
Mar 14 '07 #9


"Calz" wrote in message news:20******** *************** *****@gmail.com ...
Thats an Exe that does wht i wanna do.. Can I get the Source Code Please..

EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com
???

Mythran
Mar 14 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
5716
by: Kurt | last post by:
Hi We are developing an off-the-shelf software suite for a certain business sector. Most of the program is simply a GUI on top of some .mdb files. Its a .net application written in c# One major requirement is "Outlook Integration". The Outlook contact folders are to be used for contact management I want to know what is the standard way...
5
4322
by: tabonni | last post by:
Hello All I am creating an ASP page. There are a list of filename and checkbox next to it. When user checked all the documents they want and click ADD TO CLIPBOARD button. All filepaths will be copied into clipboard and then they can right-click -> paste into MS Outlook as attachments. How can I use clipboardData.setData function to do...
2
4300
by: Steve | last post by:
How do you programatically save files that are attached to an email to a specified folder? It could be one file or multiple files attached to the email. Can it be done if Outlook Express is being used or does Outlook have to be used? Thanks for all help! Steve
3
1442
by: Mike Moore | last post by:
Our uses don't want to login to another application just to notate their leave schedules. Most of our users are already familiar with Outlook and like it. They don't want an office calendar, so we are building an application to display all types of leave. So..... Is there any way to code the capability for a user to create an outlook...
23
25447
by: Graham F French | last post by:
Hello, I can read text files into my application, but I cannot read in msg files as they seem to be in a proprietry format. Is there anyway of converting it on the fly or is there an interpretation method? Thanks
3
5792
by: bobdydd | last post by:
Hi Everybody Access 2000, Outlook 2000 Windows XP I am running the code below to open Microsoft Outlook from a Command Button. It works fine until I tried it on a machine that has Office installed on something other than the "C" drive. So can anyone advise me how to open Outlook by using a relative path rather than the code I am using...
2
2644
by: mesho | last post by:
Hi Forum Members, I am trying to write a program that read the outlook files "pst" and classify the emails in a user defined folders (In MS Outlook). I dont know where and how to start. So is there any body that can give me a start point or give me the code? I would like to do this in visual basic or C++.
1
5671
by: verasen | last post by:
Outlook 2007 uses the MS Word editor for composing/viewing emails. I'm trying to get a handle to the Word object within outlook and have most of the code. There's one line that's giving me an error and I'm not sure how to get around it. The compiler refuses to compile because of the line which says QueryInterface. The error is "error C2787:...
1
2316
by: =?Utf-8?B?UGF0?= | last post by:
In Windows Mail, in the import process, I get to a window that wants me to Browse for the CSV files.... I don't know how to find the Outlook files - are they already in CSV format? HELP!! I can manually re-create the address book but I'm hoping there's some easy way to do this.
4
5146
by: musicloverlch | last post by:
Hi all, I have a database being used by 30 people and is split between the backend and frontend. The database has the ability to send e-mails through Outlook and I have even put Redemption on people's PCs as to not get all the Outlook security prompts. Here's the problem: Half are using Outlook 2003, the other half is using Outlook 2007,...
0
7612
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7922
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8119
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7668
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6281
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5509
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
1
2111
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1209
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
936
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.