PC Review


Reply
Thread Tools Rate Thread

Differentiate between drag & drop email task creation and normal task creation

 
 
Mohit
Guest
Posts: n/a
 
      17th Apr 2007
Hi all,
I have explorer window opened. Now I select any mail and drag and
drop it onto the Task Button available on the Navigation pane. A new
task is created and the description of the task is filled up with my
email message body.
Now my questions are:-
How can I differentiate between tasks that are created normally
and those tasks which are created in this drag drop fashion. I require
this so as to perform some activities like setting the category of
tasks created from email messages etc. Is there some specific event
and/or property which can help me in distinguishing?
Currently I am trapping the NewInspector event but that is executed
each time even when I open a task from task list. So in this case my
activities are executing every time that I don't want.

Another question is :
I have searched on creating categories programmatically. I didn't
get any specific answer whether we can do it or not? I get that master
categories are stored as UNICODE/ANSI registeries for different
versions of outlook in one of the posts by Sue.
When I set category as : taskItem.Categories="MyCategory". Category is
added temporarily but not added in Master Category list and it is also
not available to other tasks. Is there some workaround for it?

Thanks in advance.

 
Reply With Quote
 
 
 
 
Michael Bauer [MVP - Outlook]
Guest
Posts: n/a
 
      18th Apr 2007


1) This might do it: In NewInspector or Inspector_Activate the Taskitem's
Subject is like the one in Selection(1).

2) It seems that Sue told you the 'workaround' already: you must determine
the Outlook version, dependign on that either open the right registry key
and write into it either text or hex values, or if it's OL07 use the new
object model.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Quick-Cats - Categorize Outlook data:
http://www.vboffice.net/product.html...&lang=en&pub=6

Am 17 Apr 2007 01:05:17 -0700 schrieb Mohit:

> Hi all,
> I have explorer window opened. Now I select any mail and drag and
> drop it onto the Task Button available on the Navigation pane. A new
> task is created and the description of the task is filled up with my
> email message body.
> Now my questions are:-
> How can I differentiate between tasks that are created normally
> and those tasks which are created in this drag drop fashion. I require
> this so as to perform some activities like setting the category of
> tasks created from email messages etc. Is there some specific event
> and/or property which can help me in distinguishing?
> Currently I am trapping the NewInspector event but that is executed
> each time even when I open a task from task list. So in this case my
> activities are executing every time that I don't want.
>
> Another question is :
> I have searched on creating categories programmatically. I didn't
> get any specific answer whether we can do it or not? I get that master
> categories are stored as UNICODE/ANSI registeries for different
> versions of outlook in one of the posts by Sue.
> When I set category as : taskItem.Categories="MyCategory". Category is
> added temporarily but not added in Master Category list and it is also
> not available to other tasks. Is there some workaround for it?
>
> Thanks in advance.

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with task creation Daniel.C Microsoft Outlook VBA Programming 6 16th Feb 2009 03:02 PM
drag drop from app to explorer with delayed file creation Nick Microsoft VC .NET 1 17th Jan 2007 06:46 PM
Task creation by right-clicking of an email =?Utf-8?B?S2VmZnM=?= Microsoft Outlook Discussion 2 24th Apr 2006 09:15 PM
Task creation failure Clyde Microsoft Outlook 1 12th Jan 2004 03:01 PM
Task Creation Date =?Utf-8?B?TnBhcmFkaXNl?= Microsoft Outlook Discussion 1 24th Oct 2003 10:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:08 PM.