Thread: How does one programatically arrange Outlook Tasks by category?

  1. #1
    Registered User
    Join Date
    Jul 2010
    Posts
    14

    Question How does one programatically arrange Outlook Tasks by category?

    Alright. In Outlook, if I want to arrange my tasks by categories, I can go View-Arrange By-Categories.

    My question is, is there anyway to do this programatically?

    Thanks a bundle.

  2. #2
    Anti-Poster
    Join Date
    Feb 2002
    Posts
    1,401
    I'm not sure what you want. If you want your tasks to be arranged and you're using Outlook to view your tasks, why not use Outlook to arrange your tasks as well? If you aren't using Outlook to view your tasks, you can use COM interop to access Outlook items such as your email and tasks.
    If I did your homework for you, then you might pass your class without learning how to write a program like this. Then you might graduate and get your degree without learning how to write a program like this. You might become a professional programmer without knowing how to write a program like this. Someday you might work on a project with me without knowing how to write a program like this. Then I would have to do you serious bodily harm. - Jack Klein

  3. #3
    Registered User
    Join Date
    Jul 2010
    Posts
    14
    Yes, I know that I should use the Interop.Outlook lib, but could you be more specific? I just want to save the users of a plug-in I'm making some hassle...

    I tried sorting the Items array of the task folder, but they can't sort by category O.o Hence my need to arrange by.

    Thanks for the help!

  4. #4
    Anti-Poster
    Join Date
    Feb 2002
    Posts
    1,401
    Consider using Array.Sort<T>(T[], Comparison<T>) or Array.Sort<T>(T[], IComparer<T>) to define your custom comparison logic.
    If I did your homework for you, then you might pass your class without learning how to write a program like this. Then you might graduate and get your degree without learning how to write a program like this. You might become a professional programmer without knowing how to write a program like this. Someday you might work on a project with me without knowing how to write a program like this. Then I would have to do you serious bodily harm. - Jack Klein

  5. #5
    Registered User
    Join Date
    Jul 2010
    Posts
    14
    There's an issue in that, since Outlook.Items is not an array.

    Yes, I could convert that into an array, but then the changes will not be implemented in outlook!

    I really appreciate your help though ^.^

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Feedback: Functional Specification Wording
    By Ragsdale85 in forum C++ Programming
    Replies: 0
    Last Post: 01-18-2006, 04:56 PM
  2. Familar with Outlook Express?
    By Shadow in forum Tech Board
    Replies: 1
    Last Post: 05-22-2004, 01:45 PM
  3. Replies: 8
    Last Post: 09-22-2003, 01:31 PM