SoftwareTipsPalace.com: Newsletter | YouTube Channel | Write for Us | RSS/XML  

 

advertisement
Home Windows Apple/Mac Linux Reviews Guides/Tips How-To Techs/Tests Web 2.0 Downloads Videos Blogs/News Forums
Submit your Tips/Guides | Discuss about Tips/Guides | Latest Added | Recommended Tips/Guides | Subscribe to Tips/Guides RSS
{feature}
+ Advanced Search
+ Suggest a website
Welcome, Guest. Please login or register.
Did you miss your activation email?

advertisement

read also
Create Email and send it later
Fix up the look of your EMail letter
Outlook Express: backup of the directory of the senders it blocks to you and of the other formulations
Remove MSN Messenger from Outlook Express
Spread and shrink directory tree

 

 » Choose Section
Review Downloads Guides/Tips Community News  

How to read files from Microsoft Outlook

By: Staff
Date: September 13, 2008
Recommended by: readers | recommend tip
Level: Advanced

Here's a very interesting and potentially very useful procedure that import contact information from Outlook's. You can use the procedure in the event to create any application that has a record of your contacts, phone directory type, business partner, etc...

Simply incorporate this process and provide it to your users during installation procedure of your program, to enable them too immediately at the beginning could in your program populate all existing contacts, without the need to manually enter them. Then this information abridged in his own database.

In our case, we have created a new project, for which we have set only two controls; command button (Button) and memory control (Memo). All you need is to enter next procedure within the interpreters of events:

Uses ComObj, Outlook2000;
// or [Outlook8] depending of which Outlook version you use

procedure TForm1.Button1Click(Sender: TObject);
var Outlook : TOutlookApplication;
DefNamespace: NameSpace;
Contacts: MAPIFolder;
Contact: ContactItem;
iCnt: Integer;
begin
Memo1.Clear;
Outlook:=TOutlookApplication.Create(self);
DefNameSpace:=Outlook.GetNamespace(’MAPI’);
// Reading default folder with Contacts
Contacts:=DefNameSpace.GetDefaultFolder(olFolderContacts);
for iCnt:=1 to Contacts.Items.Count do
begin
// Reading separate objects
Contact:=Contacts.Items.Item(iCnt) as ContactItem;
// Reading first and last name of your Contacts
memo1.Lines.Add (Contact.FirstName + ‘ ‘ _
+ Contact.Lastname);
end;
// Removing instance
Outlook.Free;

end;

procedure TForm1.FormCreate(Sender: TObject);
begin
Memo1.Clear;
end;

 

email this to a friend | forum discuss
MS Front Page Review | MS Front Page Guides/Tips | MS Front Page Downloads | Front Page News | Front Page Videos | Front Page Forums | Microsoft Office Blog

 

 

{feature}
{feature}
logo SoftwareTipsPalace.com : Newsletter | Email Signup | Guides, Tips, Tricks | YouTube Channel | subscribe to our rss

WebSite Links: Home | Forums | Blog | Web Mail | Windows | Software Reviews | How-To Features | Techs & Tests | Web 2.0 Reviews | Downloads

About Us | Privacy Policy | Terms of Use | Advertising Info | Contacts | FAQ's | Write for Us

{feature}