How to find the number of destinations copied in Outlook 2007

In Outlook 2007 When a user has two calendars, say Test and an actual calendar, and they are sent to a View All appointment in the test calendar, copy about 20-30 appointments and paste them into the actual calendar. "View all destinations as you get in a message box that lists as many items that have been copied."

And to add to my comment above, if the copy / paste is repeated again for 50 more destinations, then the message box should display 50 (this bill should appear correctly, without having to close the look or end the session

0


a source to share


2 answers


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

I think the way to do this is to write a wrapper class around the explorer object that links Explorer.BeforeItemCopy and Move, etc., if that's what you want.

When this event fires, you will need to find the current item to get your score.



Maybe a better way.?

76mel

0


a source


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

      

0


a source







All Articles