adding Buttons to Columns in Datagride view

Posted by kasunmit on Stack Overflow See other posts from Stack Overflow or by kasunmit
Published on 2010-05-30T06:35:38Z Indexed on 2010/05/30 6:42 UTC
Read the original article Hit count: 231

Filed under:

HiHi, I wrote C# application for import unread e-mails from outlook 2007, I could import sender name, sender mail address,subject and body to data grid view as following

foreach (Microsoft.Office.Interop.Outlook._MailItem mailItem in fldEmails.Items) { if (mailItem.UnRead) {

UnreadEmails mail = new UnreadEmails();

// mail.AttachmentContent = (mailItem.UnRead == false) ? string.Empty : mailItem.Attachments.Session.OpenSharedItem; foreach (Microsoft.Office.Interop.Outlook.Attachment Atmt in mailItem.Attachments) { mail.AttachmentContent = (mailItem.UnRead == false) ? string.Empty : Atmt.DisplayName; }

emails.Add(mail);

}

} UnreadEmails is a separte class. but couldn't find a way to import attachments (word pdf ppt excel) because i need it for my filter pls help me about it

but i could import inly name of the attachment but i need to import attachment content (word, pdf , ppt .. atc. ) to this data grid pls tell how i can do it ... with the code

© Stack Overflow or respective owner

Related posts about c#3.0