Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Add-Ins / December 2007

Tip: Looking for answers? Try searching our database.

Add items into a calendar (Outlook 2007)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
j - 27 Dec 2007 15:25 GMT
In Outlok 2007 it's possible to add any item (regular mail) to
calendar by right clicking on mail item's flag icon and setting  and
setting folow up (Today, Tomorrow .... Custom).

My question is , how can i do the same  programatically  (.NET, C#,  +
Redemption).

Which named properties i should add to item ???

Tnx in advance.
Ken Slovak - [MVP - Outlook] - 27 Dec 2007 18:30 GMT
That doesn't add things to the calendar, it adds a bunch of task related
properties to the items and the items then show up in the To-Do Bar list.

The easiest way to mimic that is to examine an unflagged item with a MAPI
viewer and look at the item properties. Then flag it and re-examine the item
and see what properties were added to the item. With those properties the
item will show up in the hidden search folder that forms the basis for the
To-Do Bar.

You can download MFCMAPI free from MS (a MAPI viewer) or use a commercial
MAPI viewer like OutlookSpy (www.dimastr.com), my own choice.

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm

> In Outlok 2007 it's possible to add any item (regular mail) to
> calendar by right clicking on mail item's flag icon and setting  and
[quoted text clipped - 6 lines]
>
> Tnx in advance.
Sue Mosher [MVP-Outlook] - 28 Dec 2007 16:38 GMT
You don't need Redemption for that. From the Outlook object model, you can call the MailItem.MarkAsTask method and set the TaskStartDate and TaskStartDate properties, etc. appropriately.
Signature

Sue Mosher, Outlook MVP
  Author of Microsoft Outlook 2007 Programming:
    Jumpstart for Power Users and Administrators
   http://www.outlookcode.com/article.aspx?id=54

> In Outlok 2007 it's possible to add any item (regular mail) to
> calendar by right clicking on mail item's flag icon and setting  and
[quoted text clipped - 4 lines]
>
> Which named properties i should add to item ???
j - 30 Dec 2007 07:51 GMT
Thanks for replays,

I can't use MailItem.MarkAsTask, cause my AddIn written for Office
2003 (VSTO 2005) and i can't find such property, i guess it's
only for Office 2007 (VSTO 2007).

Any suggestions???
Ken Slovak - [MVP - Outlook] - 30 Dec 2007 18:10 GMT
For Outlook 2003 manually add those task properties that MarkAsTask() does.
For Outlook 2007 use reflection to call that method. Or manually add the
properties in both versions. Use a MAPI viewer to see what properties are
added in Outlook 2007 when that method is called, either by test code or
from the UI.

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm

> Thanks for replays,
>
[quoted text clipped - 3 lines]
>
> Any suggestions???
j - 31 Dec 2007 10:37 GMT
Thanks.

I used Outlook SPY viewer to see what  properties are changed or added
in OL 2007, but didn't find anything special,
a lot of properties changed, and a some properties added. Trying to
add some porperties and change existing dosn't result my vishes.

Any sugegstions???
Ken Slovak - [MVP - Outlook] - 31 Dec 2007 18:10 GMT
I don't know what you're looking at but I see reminder and task properties
added to the item. Among them are StartDate, DueDate, Complete, Status,
ReminderSet, FlagDueBy and ReminderTime.

When those properties are added I see the item in the To-Do Bar. Isn't that
what you said you wanted?

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm

> Thanks.
>
[quoted text clipped - 4 lines]
>
> Any sugegstions???
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.