问题描述
当我在TaskItem中创建olByReference AppointmentItem附件时它工作正常,但是当我打开TaskItem检查器窗口并尝试打开附件时没有任何反应。
我在AppointmentItem中使用olByReference TaskItem Attachment反过来工作,当我进入AppointmentItems检查器窗口时,我可以打开TaskItem附件。代码是一样的,所以我不明白什么是错的。有什么想法吗?
代码片段
taskItem.Attachments.Add(appointmentItem,Outlook.OlAttachmentType.olByReference,1,appointmentItem.Subject);
When I create an olByReference AppointmentItem Attachment in a TaskItem it works fine but when I then open the TaskItem inspector window and try to open the attachment nothing happens.
I have it working the other way round with olByReference TaskItem Attachment in a AppointmentItem and when I then go into that AppointmentItems inspector window I can open the TaskItem attachment fine. The code is the same so I don't understand whats wrong. Any idea's?
Code Snippet
taskItem.Attachments.Add(appointmentItem, Outlook.OlAttachmentType.olByReference, 1, appointmentItem.Subject);
这篇关于在TaskItem C#中创建olByReference AppointmentItem附件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!