C# and Outlook how - do I return the name and path of an Outlook Attachment

I use the Outlook MailItem to retrieve the values of the Email message.

How do I return the oEmail.Attachment - name and path ? Not sure how to cast it... thanks

                                    
                                                Outlook.MailItem oEmail = mail.LastSentItem();

                                                object[] rowVals = new object[11];
                                                DataRowCollection rc =  this.dsNotes.Tables["Interactions"].Rows;
                                    
                                                rowVals[2] = oEmail.SentOn;
                                                rowVals[3] = String.Concat("Sent:", oEmail.SentOn," Received: ",oEmail.ReceivedTime.ToShortDateString(),System.Environment.NewLine,oEmail.Subject);
                                                rowVals[4] = String.Concat("E-Mail:",System.Environment.NewLine,oEmail.Body);
                                                rowVals[8] = "Sent E-Mail";
                                                rowVals[9] =  oEmail.Attachments  ?????????????????????
                                                rowVals[10]= "E-Mail Message";
LVL 1
JElsterAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AgariciCommented:
once the file is attached to the mail, it looses the path - it becames part of the mail. in other words a copy of the original file is stored in mime format into the mail but any information about that file is lost - so you can not obtain the attached files path
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
JElsterAuthor Commented:
What about the file name ? Thanks
0
JElsterAuthor Commented:
What other info can I 'read'?
Thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.