Click here to Skip to main content
15,888,351 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to convert a .txt file to return an array? c# Pin
Rob Philpott15-Jul-14 20:35
Rob Philpott15-Jul-14 20:35 
AnswerRe: how to convert a .txt file to return an array? c# Pin
Rob Philpott15-Jul-14 20:28
Rob Philpott15-Jul-14 20:28 
AnswerRe: how to convert a .txt file to return an array? c# Pin
OriginalGriff15-Jul-14 20:49
mveOriginalGriff15-Jul-14 20:49 
QuestionGet csv outputfil from file.msg Pin
Member 1092249815-Jul-14 5:32
Member 1092249815-Jul-14 5:32 
hi all,
i'm trying to retrieve some values in an outlook mail (.msg file extension).
i already get some fields using outlook object model, then writte result in csv file. (outputfile)

C#
MailItem items = (MailItem)outlook.CreateItemFromTemplate(inputfile, Type.Missing);
...
Console.WriteLine(string.Format("Subject:{0}", items.Subject));
Console.WriteLine(string.Format("Sender Email Address:{0}", items.SenderEmailAddress));
...
Console.WriteLine(string.Format("Text Body:{0}", items.Body));
...


Now i'd like to get some fields values in the content of the body
C#
items.Body
. these values are splited with ":" .

My question: Can i use
C#
MyString=Value.Split(:)[indexofvalue];
to retrieve custom values?
is it the right manner to do? some suggestions?

Thank you a lot for the answers.

Thim
AnswerRe: Get csv outputfil from file.msg Pin
Rob Philpott15-Jul-14 6:07
Rob Philpott15-Jul-14 6:07 
GeneralRe: Get csv outputfil from file.msg Pin
Member 1092249815-Jul-14 12:09
Member 1092249815-Jul-14 12:09 
GeneralRe: Get csv outputfil from file.msg Pin
Rob Philpott15-Jul-14 20:30
Rob Philpott15-Jul-14 20:30 
GeneralRe: Get csv outputfil from file.msg Pin
Member 1092249821-Jul-14 23:04
Member 1092249821-Jul-14 23:04 
QuestionINotifyPropertyChanged binding label problem during update in function Pin
massisoda15-Jul-14 4:42
massisoda15-Jul-14 4:42 
AnswerRe: INotifyPropertyChanged binding label problem during update in function Pin
Pete O'Hanlon15-Jul-14 5:18
mvePete O'Hanlon15-Jul-14 5:18 
GeneralRe: INotifyPropertyChanged binding label problem during update in function Pin
massisoda15-Jul-14 5:21
massisoda15-Jul-14 5:21 
GeneralRe: INotifyPropertyChanged binding label problem during update in function Pin
Pete O'Hanlon15-Jul-14 5:24
mvePete O'Hanlon15-Jul-14 5:24 
GeneralRe: INotifyPropertyChanged binding label problem during update in function Pin
massisoda16-Jul-14 1:48
massisoda16-Jul-14 1:48 
GeneralRe: INotifyPropertyChanged binding label problem during update in function Pin
Pete O'Hanlon16-Jul-14 1:53
mvePete O'Hanlon16-Jul-14 1:53 
GeneralRe: INotifyPropertyChanged binding label problem during update in function Pin
massisoda16-Jul-14 2:00
massisoda16-Jul-14 2:00 
GeneralRe: INotifyPropertyChanged binding label problem during update in function Pin
Pete O'Hanlon16-Jul-14 2:22
mvePete O'Hanlon16-Jul-14 2:22 
QuestionShowDialog doesn't make form modal Pin
Don Guy15-Jul-14 4:34
Don Guy15-Jul-14 4:34 
AnswerRe: ShowDialog doesn't make form modal Pin
Eddy Vluggen15-Jul-14 5:28
professionalEddy Vluggen15-Jul-14 5:28 
QuestionTo create reports Pin
stokkee15-Jul-14 2:19
stokkee15-Jul-14 2:19 
AnswerRe: To create reports Pin
Simon_Whale15-Jul-14 3:22
Simon_Whale15-Jul-14 3:22 
AnswerRe: To create reports Pin
deenn22-Jul-14 2:26
deenn22-Jul-14 2:26 
Questionreading magnetic card stripe Pin
Jassim Rahma15-Jul-14 1:22
Jassim Rahma15-Jul-14 1:22 
AnswerRe: reading magnetic card stripe Pin
OriginalGriff15-Jul-14 1:31
mveOriginalGriff15-Jul-14 1:31 
GeneralRe: reading magnetic card stripe Pin
Jassim Rahma15-Jul-14 1:35
Jassim Rahma15-Jul-14 1:35 
GeneralRe: reading magnetic card stripe Pin
OriginalGriff15-Jul-14 1:38
mveOriginalGriff15-Jul-14 1:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.