如何查找在 Outlook 2007 中复制的约会项目的数量

发布于 2024-07-19 05:40:44 字数 204 浏览 2 评论 0原文

在 Outlook 2007 中,当用户有两个日历(测试日历和实际日历)并且他转到测试日历中的“查看所有约会”时,复制大约 20 到 30 个约会并将它们粘贴到实际日历的“所有约会项目视图”中,如何获取消息框说复制了这么多项目,

并进一步添加我上面的评论,如果再次重复复制/粘贴另外 50 个约会项目,则消息框应显示 50(此计数应该正确,无需关闭 Outlook 或终止会话)

In Outlook 2007 When a user has two calendars say Test and actual calendar and he goes to View All appointment in test calendar, copy say around 20 to 30 appointments and paste them in actual calendar's "All Appointment items view, how to get a message box saying so many items copied.

And to add further to my comment above if the copy/paste is again repeated for another 50 appointment items then message box should show 50 (this count should come correctly without the need to close outlook or terminate the session

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

舂唻埖巳落 2024-07-26 05:40:44

如果我理解正确的话,您想要跟踪从一个日历复制到另一个日历的项目数,并在对话框中显示复制的项目数。

我认为执行此操作的方法是围绕资源管理器对象编写一个包装类,该包装类将 Explorer.BeforeItemCopy 和 Move 等连接起来(如果您也需要的话)。

当该事件触发时,您将必须查找当前的项目选择才能获得计数。

可能有更好的方法..?

76梅尔

If I understand you correctly, you want to track the number of items that have been copied from one calendar to another and display the count of items copied in a dialog box.

I think the way to do this would be to write a wrapper class around the explorer object that wires up the Explorer.BeforeItemCopy and Move etc if you want that as well.

When that event fires you will have to look up the current items selection to get your count.

There may be a better way .. ?

76mel

沙沙粒小 2024-07-26 05:40:44

这就是你的做法。

Outlook.Application olApp = new Outlook.Application();
Outlook.Folder cal = olApp.Session.GetDefaultFolder(Outlook.oldefaultfolders.olCalender)();
System.Windows.Forms.MessageBox.Show("Number of items in calendar : {0}", cal.Items.Count.ToString());

This is how you do it.

Outlook.Application olApp = new Outlook.Application();
Outlook.Folder cal = olApp.Session.GetDefaultFolder(Outlook.oldefaultfolders.olCalender)();
System.Windows.Forms.MessageBox.Show("Number of items in calendar : {0}", cal.Items.Count.ToString());
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文