{"id":215,"date":"2006-03-13T02:12:19","date_gmt":"2006-03-13T06:12:19","guid":{"rendered":"http:\/\/www.soulhuntre.com\/items\/date\/2006\/03\/13\/can-it-be-this-simple\/"},"modified":"2006-03-13T02:12:19","modified_gmt":"2006-03-13T06:12:19","slug":"can-it-be-this-simple","status":"publish","type":"post","link":"http:\/\/legacyiamsenseiken.local\/2006\/03\/13\/can-it-be-this-simple\/","title":{"rendered":"Can it be this simple?"},"content":{"rendered":"

Ok… so I was playign with Office integration today a bit and I wondered how easy it woudl be to make a tool that let me add Task items to Outlook. A few text boxes and a form later and it was all done. Anyway, here is the code that was attatched to the4 “go” button that actually did the work.<\/p>\n

\n\tprivate void go_button_Click(object sender, EventArgs e)
\n {
\n
\n   
\n Microsoft.Office.Interop.Outlook.Application olapp =
\n                                    new Microsoft.Office.Interop.Outlook.Application();
\n   <\/p>\n

Microsoft.Office.Interop.Outlook.TaskItem newtask =
\n                                (Microsoft.Office.Interop.Outlook.TaskItem)olapp.CreateItem
\n                                (Microsoft.Office.Interop.Outlook.OlItemType.olTaskItem);
\n
\n   
\n newtask.Subject = task_subject.Text;
\n
\n   
\n newtask.Body = task_body.Text;
\n
\n   
\n newtask.Categories = task_categories.Text;
\n
\n   
\n newtask.Save();
\n
\n }<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"

Ok… so I was playign with Office integration today a bit and I wondered how easy it woudl be to make a tool that let me add Task items to Outlook. A few text boxes and a form later and it was all done. Anyway, here is the code that was attatched to the4 “go” […]<\/p>\n","protected":false},"author":3,"featured_media":53192,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"aside","meta":{"footnotes":""},"categories":[278],"tags":[],"_links":{"self":[{"href":"http:\/\/legacyiamsenseiken.local\/wp-json\/wp\/v2\/posts\/215"}],"collection":[{"href":"http:\/\/legacyiamsenseiken.local\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/legacyiamsenseiken.local\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/legacyiamsenseiken.local\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/legacyiamsenseiken.local\/wp-json\/wp\/v2\/comments?post=215"}],"version-history":[{"count":0,"href":"http:\/\/legacyiamsenseiken.local\/wp-json\/wp\/v2\/posts\/215\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/legacyiamsenseiken.local\/wp-json\/wp\/v2\/media\/53192"}],"wp:attachment":[{"href":"http:\/\/legacyiamsenseiken.local\/wp-json\/wp\/v2\/media?parent=215"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/legacyiamsenseiken.local\/wp-json\/wp\/v2\/categories?post=215"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/legacyiamsenseiken.local\/wp-json\/wp\/v2\/tags?post=215"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}