![]() ![]() In the OnClick event handler of a button located on a command bar or a ribbon tab of the Compose Inspector window, we create and initialize an instance of our class, serialize it and add to the Attachments collection: Dim inspector As Outlook.Inspector = OutlookApp.ActiveInspector()ĭirectCast(inspector.CurrentItem, Outlook.MailItem)ĭim TempFileTmp As String = Path.GetTempFileName()Įnd If Dim textWriter As TextWriter = New _ĭim serializer As New XmlSerializer(GetType(DataClass)) ![]() Public ID As String Public Name As String Public Discontinued As Boolean Public Count As Decimal Public As DateTime NET class which we are going to serialize and send as attachment: Public Class DataClass In this sample add-in for Microsoft Outlook, I suggest a slightly different approach – using the Attachments collection and such a powerful. ![]() Normally Outlook developers use the MailItem.UserProperties collection to send and receive some additional information with email messages. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |