![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
No, there aren't any built-in methods for importing (or exporting) to a CSV
file, you have to write your own code for that. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "satishsuman" wrote in message ... Hi, I need to fetch my outlook contacts in a csv file using c#. I am able to do it by writing all the fields one by one in my data.csv. e.g. for (int i = 1; i = contactFld.Items.Count ; i++) { Outlook.ContactItem contact = (Outlook.ContactItem)contactFld.ItemsIdea; if (contact.Email1Address != null || contact.Email2Address != null || contact.Email3Address != null) { try { sw.Write(contact.FirstName); sw.Write("',"); sw.Write(contact.LastName); sw.Write("',"); sw.WriteLine(contact.Email1Address); } catch (Exception e1) { MessageBox.Show("Error"); } } } Now, instead of creating this .csv file, I want to fetch the .csv file diretly. Is there any method to fetch it directly from MAPIFolder element? Or any other way.. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Exporting appts from another program | Feene | Outlook - Calandaring | 1 | March 8th 06 09:06 PM |
My program runs very slow | קובץ | Outlook and VBA | 6 | January 22nd 06 04:46 PM |
Open program with ... | Ann | Outlook Express | 3 | January 18th 06 06:24 PM |
How to Program a Calendar Control | Chaplain Doug | Outlook - Using Forms | 1 | January 12th 06 03:53 PM |
Address book program with CRM features to replace Outlook/Express contact book | [email protected] | Outlook - Using Contacts | 0 | January 11th 06 12:36 AM |