在TaskItem C#中创建olByReference AppointmentItem附件 [英] Creating an olByReference AppointmentItem Attachment in a TaskItem C#

查看:97
本文介绍了在TaskItem C#中创建olByReference AppointmentItem附件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在TaskItem中创建olByReference AppointmentItem附件时它工作正常,但是当我打开TaskItem检查器窗口并尝试打开附件时没有任何反应。

我在AppointmentItem中使用olByReference TaskItem Attachment反过来工作,当我进入AppointmentItems检查器窗口时,我可以打开TaskItem附件。代码是一样的,所以我不明白什么是错的。有什么想法吗?

代码片段
taskItem.Attachments.Add(appointmentItem,Outlook.OlAttachmentType.olByReference,1,appointmentItem.Subject);

解决方案

这就像在Outlook论坛上查询的问题一样 http://www.microsoft.com/office/community/en-us /default.mspx?dg=microsoft.public.outlook.program_vba&lang=en&cr=US

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);

解决方案

This looks for like a question to be asked on Outlook forum
http://www.microsoft.com/office/community/en-us/default.mspx?dg=microsoft.public.outlook.program_vba&lang=en&cr=US


这篇关于在TaskItem C#中创建olByReference AppointmentItem附件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆